Commit Graph

9 Commits

Author SHA1 Message Date
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
6543
86faedc966
Vendor: upgrade spf13/cobra to v1.1.1 (#479)
* build(deps): bump github.com/spf13/cobra from 1.0.0 to 1.1.1

* update doc (man & md)

* update bash|fish|zsh completion
2020-10-27 14:38:55 +01:00
Michael Muré
4559af5e71
update auto-generated files 2020-02-23 14:38:02 +01:00
Michael Muré
ed7d8c13bf
update generated files 2019-04-01 14:03:20 +02:00
Michael Muré
782576f124
update generated files 2019-03-01 22:56:04 +01:00
Michael Muré
09692456c7
man: update the date in the generated doc 2019-02-16 17:34:04 +01:00
Michael Muré
5a465c0d8a
update generated doc with the new date 2018-12-22 03:08:02 +01:00
Michael Muré
95021a07fd
docs: update manpages due to change of month 2018-10-01 21:54:52 +02:00
Michael Muré
6cdc6c087e
commands: add git bug comment add to add a comment 2018-09-15 20:31:40 +02:00