summaryrefslogtreecommitdiff
path: root/src/buildstream/_frontend
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2020-05-07 20:32:44 +0000
committerChandan Singh <chandan@chandansingh.net>2020-05-13 21:32:37 +0000
commitc3198f5e4e8ff45ac9be19215f575a54e2180de4 (patch)
tree90b94f7afba64434c9673689f03ae029aa7fd359 /src/buildstream/_frontend
parenta34ff401b4fa3d3649b46ecc336fa27a110373fa (diff)
downloadbuildstream-c3198f5e4e8ff45ac9be19215f575a54e2180de4.tar.gz
_frontend/cli: Support "build" and "run" values for `source fetch --deps`
Diffstat (limited to 'src/buildstream/_frontend')
-rw-r--r--src/buildstream/_frontend/cli.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py
index b8fd55b08..f3499a56c 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -813,7 +813,16 @@ def source():
"-d",
default=_PipelineSelection.PLAN,
show_default=True,
- type=FastEnumType(_PipelineSelection, [_PipelineSelection.NONE, _PipelineSelection.PLAN, _PipelineSelection.ALL]),
+ type=FastEnumType(
+ _PipelineSelection,
+ [
+ _PipelineSelection.PLAN,
+ _PipelineSelection.NONE,
+ _PipelineSelection.BUILD,
+ _PipelineSelection.RUN,
+ _PipelineSelection.ALL,
+ ],
+ ),
help="The dependencies to fetch",
)
@click.option(
@@ -841,6 +850,8 @@ def source_fetch(app, elements, deps, except_, remote):
\b
none: No dependencies, just the element itself
plan: Only dependencies required for the build plan
+ run: Runtime dependencies, including the element itself
+ build: Build time dependencies, excluding the element itself
all: All dependencies
"""
with app.initialized(session_name="Fetch"):