summaryrefslogtreecommitdiff
path: root/src/buildstream/_frontend
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-11 18:49:24 +0900
committerTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-11 19:45:47 +0900
commit618173c6c70f670ec8117e8ecc8ad20dd9b7f93a (patch)
tree9289010b6be4bc7681ed4f62f0c559c679250851 /src/buildstream/_frontend
parentf72aa20388af8cbb47c2bf575684a97b38fc01ae (diff)
downloadbuildstream-618173c6c70f670ec8117e8ecc8ad20dd9b7f93a.tar.gz
_frontent/cli.py: Removed message to user informing the workspace is closed.
When closing a workspace while the `workspace close` command was issued from the closed workspace, we go to great lengths to inform the user that they can no longer run bst commands from the closed workspace directory. This is not worthwhile, the user will know this the next time they run `bst` anyway.
Diffstat (limited to 'src/buildstream/_frontend')
-rw-r--r--src/buildstream/_frontend/cli.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py
index 11d6dfe98..18bb03c74 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -1040,8 +1040,6 @@ def workspace_open(app, no_checkout, force, directory, elements):
def workspace_close(app, remove_dir, all_, elements):
"""Close a workspace"""
- removed_required_element = False
-
with app.initialized():
if not (all_ or elements):
# NOTE: I may need to revisit this when implementing multiple projects
@@ -1073,17 +1071,6 @@ def workspace_close(app, remove_dir, all_, elements):
for element_name in elements:
app.stream.workspace_close(element_name, remove_dir=remove_dir)
- if app.stream.workspace_is_required(element_name):
- removed_required_element = True
-
- # This message is echo'd last, as it's most relevant to the next
- # thing the user will type.
- if removed_required_element:
- click.echo(
- "Removed '{}', therefore you can no longer run BuildStream "
- "commands from the current directory.".format(element_name),
- err=True,
- )
##################################################################