diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-10-19 18:48:38 +0100 |
---|---|---|
committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-11-20 11:43:49 +0000 |
commit | 7ae3a3d2433f0909a6c4d43655b8fff95fb8c318 (patch) | |
tree | 4ae64f1775a4f82de378bb4d87e85ac025a4cea4 /buildstream/data | |
parent | 27ca65931d3cf6cf897b623f21ba2363f3c54029 (diff) | |
download | buildstream-7ae3a3d2433f0909a6c4d43655b8fff95fb8c318.tar.gz |
Add prompt.workspace-... options
Provide options in project.conf to disable the 'Are you sure ...'
prompts when making destructive changes:
- Add prompt.really-workspace-close-remove-dir
- Add prompt.really-workspace-reset-hard
Add a NEWS item for these.
Diffstat (limited to 'buildstream/data')
-rw-r--r-- | buildstream/data/userconfig.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/buildstream/data/userconfig.yaml b/buildstream/data/userconfig.yaml index 0e6581cb7..dfc18545e 100644 --- a/buildstream/data/userconfig.yaml +++ b/buildstream/data/userconfig.yaml @@ -116,3 +116,19 @@ prompt: # no - Never create the project. # auto-init: ask + + # Whether to really proceed with 'bst workspace close --remove-dir' removing + # a workspace directory, potentially losing changes. + # + # ask - Ask the user if they are sure. + # yes - Always remove, without asking. + # + really-workspace-close-remove-dir: ask + + # Whether to really proceed with 'bst workspace reset' doing a hard reset of + # a workspace, potentially losing changes. + # + # ask - Ask the user if they are sure. + # yes - Always hard reset, without asking. + # + really-workspace-reset-hard: ask |