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
vince
d96284da64
Change the comment ID to use both bug and comment ID references.
...
Add comment edit command
This commit adds the comment edit command, which provides a CLI tool that allows a user to edit a comment.
2021-02-14 12:17:48 +01: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é
f72a9dc62b
switch to go-term-text to fix bad underflow for label rendering
2019-11-03 14:00:35 +01:00
Michael Muré
99b5c58d43
finish the refactoring for the dedicated identifier type
2019-08-12 16:12:14 +02:00
Michael Muré
0a71e6d269
commands: display comment's id in "git bug comment"
2019-03-28 01:21:41 +01:00
Michael Muré
029861fa0e
commands: fix a bad output in "bug comment"
2019-03-28 01:02:12 +01:00
Jocelyn FACCHINI
0d4167a296
Renamed user id to user-id and metioned bug for some commands
2019-03-23 18:07:27 +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é
bfb5e96aab
commands: git bug comment now show the comments of a bug
2018-09-15 20:30:31 +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é
87669e0f18
termui: use the editor to create a new bug
2018-07-31 16:44:23 +02:00
Michael Muré
eb39c5c29b
cli: rework new and comment command to better use the editor
...
a nice templace is now provided with explanations
new: title and message can now be provided from the editor. Title will
be the first non-empty line
2018-07-31 16:44:23 +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é
76ac1787b8
add bug status + open/close commands
2018-07-17 19:28:37 +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