aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAmine <hilalyamine@gmail.com>2019-05-26 12:35:53 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-05-29 22:58:01 +0200
commit1022b9e5364c7f4bb8e38363b3760a3e48813047 (patch)
tree45adb2b990c15a6d7caa97ed81df303879edbd99 /commands
parent43758a14fdd42ec9b25f1fe291ec774ed67cf34e (diff)
downloadgit-bug-1022b9e5364c7f4bb8e38363b3760a3e48813047.tar.gz
Update flags descriptions
Enhance printing in prompt Co-Authored-By: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'commands')
-rw-r--r--commands/bridge_configure.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/commands/bridge_configure.go b/commands/bridge_configure.go
index 12f287b8..0ad602f4 100644
--- a/commands/bridge_configure.go
+++ b/commands/bridge_configure.go
@@ -113,10 +113,11 @@ var bridgeConfigureCmd = &cobra.Command{
func init() {
bridgeCmd.AddCommand(bridgeConfigureCmd)
- bridgeConfigureCmd.Flags().StringVarP(&name, "name", "n", "", "Bridge name")
- bridgeConfigureCmd.Flags().StringVarP(&target, "target", "t", "", "Bridge target name. Valid values are [github,gitlab,gitea,launchpad-preview]")
- bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.URL, "url", "u", "", "Repository url")
- bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Owner, "owner", "o", "", "Repository owner")
- bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Token, "token", "T", "", "Authentication token")
- bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Project, "project", "p", "", "Repository name")
+ bridgeConfigureCmd.Flags().StringVarP(&name, "name", "n", "", "A distinctive name to identify the bridge")
+ bridgeConfigureCmd.Flags().StringVarP(&target, "target", "t", "",
+ fmt.Sprintf("The target of the bridge. Valid values are [%s]", strings.Join(bridge.Targets(), ",")))
+ bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.URL, "url", "u", "", "The URL of the target repository")
+ bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Owner, "owner", "o", "", "The owner of the target repository")
+ bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Token, "token", "T", "", "The authentication token for the API")
+ bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Project, "project", "p", "", "The name of the target repository")
}