aboutsummaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* move bug.Status in entities/common for reuseMichael Muré2022-08-201-1/+2
|
* move {bug,identity} to /entities, move input to /commandsMichael Muré2022-08-1814-13/+626
|
* fix(836): revert to older test harnessSteve Moyer2022-08-181-4/+2
|
* feat(836): updates default ls formatter for TSV outputSteve Moyer2022-08-182-1/+61
| | | | Resolves #836
* docs(847): add compact to docs and bash for ls command's format flagSteve Moyer2022-08-161-2/+2
|
* test(809): remove reliance on repo's filesystemSteve Moyer2022-06-224-16/+15
|
* test(809): remove remaining calls to InitGoRepo in testsSteve Moyer2022-06-161-9/+2
| | | | Note that examples still need to shown how a developer would use the library.
* refactor(809): eliminate need to defer CleanupTestRepos()Steve Moyer2022-06-162-2/+3
|
* test(778): simplify and guarantee backend cleanupSteve Moyer2022-06-151-18/+4
|
* refactor(778): test only command implementationsSteve Moyer2022-06-158-191/+94
|
* chore(808): rearrange imports to git-bug conventionSteve Moyer2022-06-071-2/+3
|
* test(808): document getCWD() and clean-up argumentsSteve Moyer2022-06-071-2/+8
|
* test(808): skip root help test that uses a golden fileSteve Moyer2022-06-071-4/+2
|
* fix(808): remove duplication stderr/stdout set-upSteve Moyer2022-06-061-3/+0
|
* test(808): make build tag compatible with Go 1.16Steve Moyer2022-06-061-0/+1
|
* test(808): do not run golden file tests on WindowsSteve Moyer2022-06-062-52/+63
|
* fix(808): simplify handling of Windows line terminationsSteve Moyer2022-06-061-2/+1
|
* chore(808): merge in LocalStorage namespace configurationSteve Moyer2022-06-062-3/+3
|
* Merge branch 'master' into fix/778-git-bug-rm-brokenSteve Moyer2022-06-061-1/+3
|\
| * refactor: use namespace instead of application of applicationNameSteve Moyer2022-05-261-2/+2
| |
| * feat: make local storage configurableSteve Moyer2022-05-251-1/+3
| |
* | fix(808): replace Windows line terminatorsSteve Moyer2022-06-061-1/+5
| |
* | test(778): execute rm bug in testEnv (hangs)Steve Moyer2022-05-281-0/+15
| |
* | test(778): execute add user in testEnv and return userIDSteve Moyer2022-05-281-0/+33
| |
* | test(778): clear output after user creationSteve Moyer2022-05-281-1/+3
| |
* | test(778): verify user create results in an identity and cacheSteve Moyer2022-05-272-0/+40
| |
* | test(778): verify root command returns main help textSteve Moyer2022-05-272-0/+120
| |
* | test(778): allow alternate CWD via contextSteve Moyer2022-05-271-2/+16
| |
* | test(778): capture stderr and stdout during testsSteve Moyer2022-05-271-0/+3
|/
* completion: lots of small ironingMichael Muré2022-05-011-51/+43
|
* ls: fix incorrect query parsing with quotes escaped by the shellMichael Muré2022-05-012-7/+59
|
* completion: use the correct GenBashCompletionV2 instead of the legacy functionMichael Muré2022-05-011-8/+0
|
* Add command-specific argument completionsJohannes Altmanninger2022-05-0125-7/+398
| | | | | | | | | | | | | | | | | | | | | | 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
* Command ls: Add compact formatSascha2021-08-171-0/+28
|
* commands: proper backend close on RunE errorMichael Muré2021-05-0935-200/+174
|
* CLI: Add non-interactive option to interactive commands (#651)Sascha2021-05-096-23/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* CLI - allow user create without prompt (#650)Hariharan2021-04-251-20/+39
| | | | | | | | | | | * CLI - allow user create without prompt. Fixes #577 * Update commands/user_create.go email message Co-authored-by: Michael Muré <batolettre@gmail.com> * Update docs Co-authored-by: Michael Muré <batolettre@gmail.com>
* make sure every text input is safe and validatedMichael Muré2021-04-175-5/+13
| | | | fix #630
* Merge remote-tracking branch 'origin/master' into dag-entityMichael Muré2021-03-292-3/+29
|\
| * commands: minor fixes for the webui open with queryMichael Muré2021-03-071-4/+5
| | | | | | | | | | | | - go fmt - add a shorthand - fix displayed webUI URL in the terminal
| * webui: allow specifying the initial queryMiklos Vajna2021-03-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Example use-case: given a github URL in a source code comment or commit message, one can now run: git bug webui --query 'metadata:github-url:"https://github.com/author/myproject/issues/42"' on the commandline to look up the details of that issue on the web ui quickly, offline. Fixes <https://github.com/MichaelMure/git-bug/issues/592>.
| * Add option to specify host addressSascha2021-02-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '--host'-cmdline-option is added to the webui command. Previously, the WebUI couldn't be hosted inside of a container. As the WebUI-server only listend per default to localhost and there was no option to change the address, the server should listend to. This means, that the WebUI was only reachable from localhost. So only from inside of the container but never from outside. The '--host'-option allows to set the IP address or a hostname which the WebUI-server should listen to. E.g. by setting 0.0.0.0 or :: as address. Update documentation for new option. Update shell completion for new option. Compilation seems to add another go-gitlab version.
| * Add ability to search by arbitrary metadataMiklos Vajna2021-02-211-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Example: ~/git/git-bug/git-bug ls --metadata github-url=https://github.com/author/myproject/issues/42 or ~/git/git-bug/git-bug ls metadata:github-url:\"https://github.com/author/myproject/issues/42\" Fixes the cmdline part of <https://github.com/MichaelMure/git-bug/issues/567>.
* | command: fix "comment edit" usageMichael Muré2021-02-141-1/+1
| |
* | Change the comment ID to use both bug and comment ID references.vince2021-02-143-1/+74
| | | | | | | | | | Add comment edit command This commit adds the comment edit command, which provides a CLI tool that allows a user to edit a comment.
* | deal with the previous changesMichael Muré2021-02-142-6/+10
|/
* repo: move bleve thereMichael Muré2020-12-081-1/+4
|
* repo: finish RepoStorage moveMichael Muré2020-12-082-18/+6
|
* Update docs for full text searchMike Goldin2020-11-171-1/+7
|
* ls: fix query quotationMichael Muré2020-11-171-27/+43
|