aboutsummaryrefslogtreecommitdiffstats
path: root/commands/add.go
Commit message (Collapse)AuthorAgeFilesLines
* commands: proper backend close on RunE errorMichael Muré2021-05-091-6/+5
|
* CLI: Add non-interactive option to interactive commands (#651)Sascha2021-05-091-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* make sure every text input is safe and validatedMichael Muré2021-04-171-1/+5
| | | | fix #630
* commands: open and close the backend in a single place, simplify commandsMichael Muré2020-06-281-14/+7
|
* commands: refactor to avoid globalsMichael Muré2020-06-281-40/+40
|
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-1/+1
|
* finish the refactoring for the dedicated identifier typeMichael Muré2019-08-121-1/+1
|
* cache: expose the operation when creating a new bugMichael Muré2019-06-161-1/+1
|
* commands: add a "." at the end of Short commands usageMichael Muré2019-03-011-1/+1
|
* moved cleaner function to util/interruptRafael Passos2018-10-241-2/+2
|
* Registering lock clearing functions to CleanerRafael Passos2018-10-231-0/+2
|
* commands: unify the processing from editor/file/stdin for "add" and "comment ↵Michael Muré2018-10-171-8/+8
| | | | | | add" fix #68
* commands: don't load the repo for commands that don't need itMichael Muré2018-10-171-3/+4
| | | | fix #67
* repo: split the Repo interface to avoid abstraction leak in RepoCacheMichael Muré2018-09-211-1/+1
|
* cmd: rename 'new' into 'add' to have a verbMichael Muré2018-09-151-0/+75