summaryrefslogtreecommitdiff
path: root/src/buildstream/_frontend
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2020-05-07 20:37:00 +0000
committerChandan Singh <chandan@chandansingh.net>2020-05-13 21:32:43 +0000
commitf196019a47b27b7a686e3aa1a1e03530fef28ea2 (patch)
treeeb88ccaafe9eba62c2990feb108ca80fc1ce1573 /src/buildstream/_frontend
parentc3198f5e4e8ff45ac9be19215f575a54e2180de4 (diff)
downloadbuildstream-f196019a47b27b7a686e3aa1a1e03530fef28ea2.tar.gz
_frontend/cli: Support "build" and "run" values for `artifact pull --deps`
Diffstat (limited to 'src/buildstream/_frontend')
-rw-r--r--src/buildstream/_frontend/cli.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py
index f3499a56c..34e21fd22 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -1301,7 +1301,10 @@ def artifact_checkout(app, force, deps, integrate, hardlinks, tar, compression,
"-d",
default=_PipelineSelection.NONE,
show_default=True,
- type=FastEnumType(_PipelineSelection, [_PipelineSelection.NONE, _PipelineSelection.ALL]),
+ type=FastEnumType(
+ _PipelineSelection,
+ [_PipelineSelection.BUILD, _PipelineSelection.NONE, _PipelineSelection.RUN, _PipelineSelection.ALL],
+ ),
help="The dependency artifacts to pull",
)
@click.option(
@@ -1327,6 +1330,8 @@ def artifact_pull(app, artifacts, deps, remote):
\b
none: No dependencies, just the element itself
+ run: Runtime dependencies, including the element itself
+ build: Build time dependencies, excluding the element itself
all: All dependencies
"""