Commit Graph

14 Commits

Author SHA1 Message Date
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é
eef7333243
commands: fix a missing line break 2019-07-07 12:50:23 +02:00
Amine Hilaly
07cc5e4100
Rebase & Update commands/bridge_rm.go
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-06-17 23:33:48 +02:00
Amine Hilaly
ee2ca519e6
Changes to Repo.RmConfigs
RmConfigs try to remove key/value or section from keyPrefix
2019-06-17 23:33:32 +02:00
Amine Hilaly
319b648d0f
Naming fixes 2019-06-16 23:02:59 +02: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é
061e83d4b4
commands: add "bridge rm" 2018-09-24 16:24:38 +02:00