aboutsummaryrefslogtreecommitdiffstats
path: root/commands/comment_add.go
Commit message (Collapse)AuthorAgeFilesLines
* move {bug,identity} to /entities, move input to /commandsMichael Muré2022-08-181-1/+1
|
* Add command-specific argument completionsJohannes Altmanninger2022-05-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | Complete bug IDs, bridges, users, labels where appropriate. This works in bash and fish. ZSH is not yet supported by Cobra. In fish, descriptions (the part of a completion after the "\t") are shown as completion label, and can be searched with Ctrl+S. Reproduce with fish -C 'source misc/fish_completion/git-bug' git bug select ^I (tested with fish version 3.3.1) Also works with bash, but only for "git-bug" (with the dash) bash --rcfile <(echo source misc/bash_completion/git-bug) git-bug select ^I Closes #493
* 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-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/+2
| | | | fix #630
* commands: cleanup the command's usage to avoid warnings when generating the docMichael Muré2020-07-281-2/+2
|
* commands: open and close the backend in a single place, simplify commandsMichael Muré2020-06-281-14/+6
|
* commands: refactor to avoid globalsMichael Muré2020-06-281-35/+38
|
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-1/+1
|
* Renamed user id to user-id and metioned bug for some commandsJocelyn FACCHINI2019-03-231-1/+1
|
* commands: add a "." at the end of Short commands usageMichael Muré2019-03-011-1/+1
|
* github: fix 3 edge-case failuresMichael 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-2/+2
| | | | | | add" fix #68
* commands: check the bug id before the user write the message for "comment add"Michael Muré2018-10-171-5/+5
|
* commands: fix "comment add" flags set on the wrong commandMichael Muré2018-10-171-3/+3
|
* commands: don't load the repo for commands that don't need itMichael Muré2018-10-171-3/+4
| | | | fix #67
* Make addCommentWithEditor accept a preMessageLuke Adams2018-10-041-1/+1
|
* repo: split the Repo interface to avoid abstraction leak in RepoCacheMichael Muré2018-09-211-1/+1
|
* commands: description cleanupMichael Muré2018-09-211-1/+1
|
* commands: convert compatible commands to the implicit select mechanismMichael Muré2018-09-181-15/+3
|
* commands: add `git bug comment add` to add a commentMichael Muré2018-09-151-0/+85