summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2020-05-07 20:59:47 +0000
committerChandan Singh <chandan@chandansingh.net>2020-05-13 21:32:43 +0000
commit5018a61a1b423ca63cc7bc969a89a8802813a70b (patch)
tree9b099528a3e04e213d366a21942727e12e557bac /src
parentf196019a47b27b7a686e3aa1a1e03530fef28ea2 (diff)
downloadbuildstream-5018a61a1b423ca63cc7bc969a89a8802813a70b.tar.gz
_frontend/cli: Support "build" and "run" values for `artifact push --deps`
Diffstat (limited to 'src')
-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 34e21fd22..11d6dfe98 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -1355,7 +1355,10 @@ def artifact_pull(app, artifacts, deps, remote):
"-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 dependencies to push",
)
@click.option(
@@ -1384,6 +1387,8 @@ def artifact_push(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
"""
with app.initialized(session_name="Push"):