diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-10-19 17:55:51 +0100 |
---|---|---|
committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-11-20 11:19:33 +0000 |
commit | 27ca65931d3cf6cf897b623f21ba2363f3c54029 (patch) | |
tree | 36852dbf42d763ea4dcfe5ee0f506a333e1a67c2 /buildstream/data | |
parent | b81c43331ef9c09e7252cef6b9ee04a605329fea (diff) | |
download | buildstream-27ca65931d3cf6cf897b623f21ba2363f3c54029.tar.gz |
Add prompt.auto-init buildstream.conf option
Provide an option in buildstream.conf to disable the 'Would you like to
...' prompt when we cannot resolve a project.
Some users prefer not to be interrupted by such prompts, so pave the way
to creating options to disable all those that might get in the way.
Follow the example of the advice.* options 'git-config', and create a
namespace for these UI options grouped by behaviour, rather than an
over-reaching 'ui.*' namespace. In later work perhaps we'll also add
'advice.*' options.
Add a NEWS item for this.
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 f540a97f6..0e6581cb7 100644 --- a/buildstream/data/userconfig.yaml +++ b/buildstream/data/userconfig.yaml @@ -100,3 +100,19 @@ logging: [%{elapsed}][%{key}][%{element}] %{action} %{message} +# +# Prompt overrides +# +# Here you can suppress 'are you sure?' and other kinds of prompts by supplying +# override values. Note that e.g. 'yes' and 'no' have the same meaning here as +# they do in the actual cli prompt. +# +prompt: + + # Whether to create a project with 'bst init' if we are invoked outside of a + # directory where we can resolve the project. + # + # ask - Prompt the user to choose. + # no - Never create the project. + # + auto-init: ask |