Michael Muré
9b98fc0648
cache: tie up the refactor up to compiling
2022-12-21 21:54:36 +01:00
Michael Muré
acc9a6f3a6
commands: reorg into different packages
2022-11-20 17:18:09 +01:00
Steve Moyer
0ffa79ef13
feat(530) make label commands consistent
2022-09-25 15:22:03 -04:00
Johannes Altmanninger
bc6ba02bd8
Add command-specific argument completions
...
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
2022-05-01 10:54:13 +02:00
Michael Muré
271dc1334c
commands: proper backend close on RunE error
2021-05-09 11:33:20 +02:00
Michael Muré
ae5c0967ce
commands: cleanup the command's usage to avoid warnings when generating the doc
2020-07-28 20:24:24 +02:00
Michael Muré
536c290dfb
commands: open and close the backend in a single place, simplify commands
2020-06-28 19:09:32 +02:00
Michael Muré
26bd1dd110
commands: refactor to avoid globals
2020-06-28 18:26:29 +02:00
Jocelyn FACCHINI
146b6b8599
Select and Label command documentation
...
- Informed that label command adds/removes a label to a given bug.
- Added suggestion to use select command when omitting to provide a bug id as argument.
- Added a bit more detail for the select command documentation, giving a hint to "deselect" command.
2019-03-23 16:59:40 +00:00
Michael Muré
2fd5f71b59
commands: add a "." at the end of Short commands usage
2019-03-01 22:52:52 +01:00
Rafael Passos
f72b18496b
moved cleaner function to util/interrupt
2018-10-24 18:36:39 -03:00
Rafael Passos
c38f8f1c30
Registering lock clearing functions to Cleaner
2018-10-23 18:01:00 -03:00
Michael Muré
7a511f9a13
commands: don't load the repo for commands that don't need it
...
fix #67
2018-10-17 20:39:35 +02:00
Michael Muré
cfce3a9914
commands: description cleanup
2018-09-21 13:37:22 +02:00
Michael Muré
544b9cc0c4
commands: convert compatible commands to the implicit select mechanism
2018-09-18 13:28:01 +02:00
Michael Muré
cc086ebae9
commands: make "label" display the current labels
2018-09-17 14:32:33 +02:00
Michael Muré
f569e6aacc
operations: return a more convenient array of result for label changes
2018-09-13 12:20:28 +02:00
Michael Muré
9bb980e9de
ls: support expressing a query with flags as well
2018-09-10 18:18:00 +02:00
Michael Muré
f136bf6a82
cmds: various cleaning
2018-09-06 21:42:05 +02:00
Michael Muré
7397c94d99
make CLI commands use the cache to lock the repo properly
2018-08-31 17:22:10 +02:00
Michael Muré
4c850b5989
cleanup go imports
2018-08-13 18:39:19 +02:00
Michael Muré
6a12373965
more refactoring to have reusable bug action across different UI
2018-07-25 18:01:32 +02:00
Michael Muré
17e2ec8f56
bug: refactor to limit abstraction leak and to have a more reusable code for the UIs
2018-07-23 00:04:46 +02:00
Michael Muré
e89f87624f
generate markdown documentation
2018-07-20 15:46:14 +02:00
Michael Muré
7f5922f905
rework all the commands to use cobra as a parser
2018-07-19 12:36:01 +02:00
Michael Muré
cfa11372cb
implement label op+command
2018-07-18 16:41:09 +02:00