git-bug/misc
Sascha 1939949fcd
CLI: Add non-interactive option to interactive commands (#651)
* Add option to skip the AvatarURL input request

Using an empty string for the avatar cli flag e.g. `git-bug user create
-a ""` will still result in a prompt. As the avatar URL is an optional
option, it should be possible to skip asking for it entirely.
Otherwise automated user creation via a script must make use of pipe hacks.

* Add global --non-interactive cmdline option

* Replace --skipAvatar for --non-interactive option

* Cmd BugAdd: respect non-interactive option

* Cmd bridge configure: respect non-interactive opt

* Cmd CommentAdd: respect non-interactive option

* Cmd CommentEdit: respect non-interactive option

* Cmd TermUI: respect non-interactive option

* Cmd TitleEdit: respect non-interactive option

* Remove global non-interactive option

* Cmd UserCreate: Use local non-interactive option

* Cmd BugAdd: Use local non-interactive option

* Cmd BridgeConfigure: Use local non-interactive option

* Cmd CommentAdd: Use local non-interactive option

* Cmd CommentEdit: Use local non-interactive option

* Cmd TermUI: Drop non-interactive option

It should be obviouse that the termui is an interactive command.

* Cmd TitleEdit: Use local non-interactive option

* Update docs

* Bridge GitHub: respect non-interactive option

* Bridge GitLab: respect non-interactive option

* Bridge Jira: respect non-interactive and token opt

* Fix failing compilation

* Bridge launchpad: respect non-interactive option

* bridge: isNonInteractive --> interactive

Co-authored-by: Michael Muré <batolettre@gmail.com>
2021-05-09 11:14:45 +02:00
..
bash_completion CLI: Add non-interactive option to interactive commands (#651) 2021-05-09 11:14:45 +02:00
diagrams readme: document workflows 2020-04-04 14:05:53 +02:00
fish_completion Vendor: upgrade spf13/cobra to v1.1.1 (#479) 2020-10-27 14:38:55 +01:00
git_hooks commands: show: change for a single valued --field flag 2019-01-07 23:08:48 +01:00
logo webui: add logo 2020-01-24 00:28:18 +01:00
powershell_completion cmd: better powershell completion, thanks to cobra upgrade 2021-02-27 21:24:26 +01:00
random_bugs bug: migrate to the DAG entity structure! 2021-02-14 12:19:50 +01:00
zsh_completion Vendor: upgrade spf13/cobra to v1.1.1 (#479) 2020-10-27 14:38:55 +01:00
gen_completion.go repo: finish RepoStorage move 2020-12-08 13:07:51 +01:00
termui_recording.gif move media in /misc 2019-04-17 20:27:33 +02:00
termui_recording.svg move media in /misc 2019-04-17 20:27:33 +02:00
webui1.png update webUI's screenshots 2020-02-23 16:32:08 +01:00
webui2.png update webUI's screenshots 2020-02-23 16:32:08 +01:00