summaryrefslogtreecommitdiff
path: root/src/buildstream/_stream.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-08-16 15:47:22 +0100
committerJames Ennis <james.ennis@codethink.co.uk>2019-08-27 12:12:13 +0100
commit4bf7cbd0566b547d29d1acab41f1ea6404253d47 (patch)
treed0e306b47be2b25c01b1aa2f5ebbb47f0fdefecb /src/buildstream/_stream.py
parenta94218bb5d37533551bcf24623d951b5a4463bf7 (diff)
downloadbuildstream-4bf7cbd0566b547d29d1acab41f1ea6404253d47.tar.gz
cli.py: Implement --deps for artifact delete
Diffstat (limited to 'src/buildstream/_stream.py')
-rw-r--r--src/buildstream/_stream.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index fc83156f5..58d4a0ebd 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -672,9 +672,10 @@ class Stream():
# Args:
# targets (str): Targets to remove
#
- def artifact_delete(self, targets):
+ def artifact_delete(self, targets, *,
+ selection=PipelineSelection.NONE):
# Return list of Element and/or ArtifactElement objects
- target_objects = self.load_selection(targets, selection=PipelineSelection.NONE, load_refs=True)
+ target_objects = self.load_selection(targets, selection=selection, load_refs=True)
# Some of the targets may refer to the same key, so first obtain a
# set of the refs to be removed.