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
Michael Muré
99b5c58d43
finish the refactoring for the dedicated identifier type
2019-08-12 16:12:14 +02:00
Michael Muré
24d6714dd5
cache: properly push/pull identities and bugs
2019-03-27 21:44:11 +01: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é
d57e2fdd19
commands: fix a panic on merge invalid
2018-09-19 21:45:52 +02:00
Michael Muré
4c576470a8
pull: don't stop the process when one merge fail
2018-09-19 21:45:52 +02:00
Michael Muré
7bec0b1f13
bug: add a data validation process to avoid merging incorrect operations
2018-09-15 13:15:00 +02:00
Michael Muré
19f43a83c3
bug: proper int baked enum for merge result status instead of a string
2018-09-13 11:13:51 +02:00
Michael Muré
6d7e79a277
cache: refactor to handle bug changes during Pull
2018-09-08 14:17:08 +02:00
Michael Muré
61a1173ec3
bug: refactor the Pull code to have the message formating in the upper layers
2018-09-07 17:10:40 +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é
0180b68cb0
implement pull/merge
2018-07-17 01:52:56 +02:00
Michael Muré
d659d74131
fix build
2018-07-16 15:26:51 +02:00
Michael Muré
d3893a5e04
rework the commands thing and add a "commands" command to list all commands
2018-07-16 15:21:21 +02:00
Michael Muré
c2774dcf23
add a "comment" command
2018-07-15 09:26:11 +02:00
Michael Muré
35d64e4f9e
fix push/pull
2018-07-13 21:51:27 +02:00
Michael Muré
1779a0f3b9
serialize a Bug to git as a blob+tree+commit+ref
2018-07-13 21:21:24 +02:00
Michael Muré
c498674718
add the new bug command with a very primitive bug datastructure
2018-07-12 12:44:46 +02:00
Michael Muré
d044365912
more experiment
2018-07-12 09:55:13 +02:00