diff options
author | Angelos Evripiotis <angelos.evripiotis@gmail.com> | 2019-01-29 12:08:07 +0000 |
---|---|---|
committer | Angelos Evripiotis <angelos.evripiotis@gmail.com> | 2019-01-29 12:08:07 +0000 |
commit | aae35e13e8f5ed550d7ccdd6611482c225a4ff81 (patch) | |
tree | 7f36de0d6db55b5f9ca62e22c413638657f883f3 /buildstream/_frontend/cli.py | |
parent | 6a4c86118380d95bdedd11e60f3a771fdae225a3 (diff) | |
parent | 86c8e4146ffd870b71cedf0031881cc4dc998c15 (diff) | |
download | buildstream-aae35e13e8f5ed550d7ccdd6611482c225a4ff81.tar.gz |
Merge branch 'aevri/are_you_sure' into 'master'
BREAK:remove unconditional 'are you sure?' prompts
See merge request BuildStream/buildstream!1061
Diffstat (limited to 'buildstream/_frontend/cli.py')
-rw-r--r-- | buildstream/_frontend/cli.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py index 34217aee5..163a05790 100644 --- a/buildstream/_frontend/cli.py +++ b/buildstream/_frontend/cli.py @@ -841,11 +841,6 @@ def workspace_close(app, remove_dir, all_, elements): if nonexisting: raise AppError("Workspace does not exist", detail="\n".join(nonexisting)) - if app.interactive and remove_dir and app.context.prompt_workspace_close_remove_dir: - if not click.confirm('This will remove all your changes, are you sure?'): - click.echo('Aborting', err=True) - sys.exit(-1) - for element_name in elements: app.stream.workspace_close(element_name, remove_dir=remove_dir) @@ -879,11 +874,6 @@ def workspace_reset(app, soft, track_, all_, elements): if all_ and not app.stream.workspace_exists(): raise AppError("No open workspaces to reset") - if app.interactive and not soft and app.context.prompt_workspace_reset_hard: - if not click.confirm('This will remove all your changes, are you sure?'): - click.echo('Aborting', err=True) - sys.exit(-1) - if all_: elements = tuple(element_name for element_name, _ in app.context.get_workspaces().list()) |