aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_configure.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-05-01 12:54:40 +0200
committerGitHub <noreply@github.com>2022-05-01 12:54:40 +0200
commit547d626c2515b764f1fba1cd6b0dee1c69d8f36a (patch)
treecfcb5f96e49e8109ab69d2f993618625139da41c /commands/bridge_configure.go
parent8ee333582ff82d0df971309e94946f2f6e69475b (diff)
parent3d534a70e906997020a8d44ad0b70b4db3fd6d1b (diff)
downloadgit-bug-547d626c2515b764f1fba1cd6b0dee1c69d8f36a.tar.gz
Merge pull request #531 from krobelus/complete-bug-ids
Complete bug IDs where appropriate
Diffstat (limited to 'commands/bridge_configure.go')
-rw-r--r--commands/bridge_configure.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/bridge_configure.go b/commands/bridge_configure.go
index 6533e497..bbfc13be 100644
--- a/commands/bridge_configure.go
+++ b/commands/bridge_configure.go
@@ -97,6 +97,7 @@ git bug bridge configure \
flags.StringVarP(&options.name, "name", "n", "", "A distinctive name to identify the bridge")
flags.StringVarP(&options.target, "target", "t", "",
fmt.Sprintf("The target of the bridge. Valid values are [%s]", strings.Join(bridge.Targets(), ",")))
+ cmd.RegisterFlagCompletionFunc("target", completeFrom(bridge.Targets()))
flags.StringVarP(&options.params.URL, "url", "u", "", "The URL of the remote repository")
flags.StringVarP(&options.params.BaseURL, "base-url", "b", "", "The base URL of your remote issue tracker")
flags.StringVarP(&options.params.Login, "login", "l", "", "The login on your remote issue tracker")