git-bug/bridge/gitlab
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
..
iterator gitlab: fix iterator (paginate with first index 1) and avoid the trailing API call 2020-04-04 12:42:08 +02:00
config_test.go bridge/gitlab: add missing baseUrl prompt and options 2019-12-26 20:16:18 +01:00
config.go CLI: Add non-interactive option to interactive commands (#651) 2021-05-09 11:14:45 +02:00
export_test.go identity: PR fixes 2021-02-14 12:17:47 +01:00
export.go bug: migrate to the DAG entity structure! 2021-02-14 12:19:50 +01:00
gitlab.go update go-gitlab 2020-07-26 11:28:51 +02:00
import_notes_test.go bridge/github: add getNewTitle tests 2019-07-23 19:49:53 +02:00
import_notes.go bridge/core: add context.Context to ImportAll and ExportAll signatures 2019-08-18 00:14:22 +02:00
import_test.go bug: migrate to the DAG entity structure! 2021-02-14 12:19:50 +01:00
import.go make sure every text input is safe and validated 2021-04-17 17:40:11 +02:00