aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/cmd/config.go
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-09-07 14:42:42 +0200
committerMartin Polden <mpolden@mpolden.no>2021-09-07 15:02:15 +0200
commita364de5217b3ff3028dd833ba99374e893bc037f (patch)
tree47fcd1cc2285cebccd4ba87ae6952e6022738b5f /client/go/cmd/config.go
parent4793f8e7e063bc22047ad9851df3dd8cfea4a3fe (diff)
Add command for generating man pages
Diffstat (limited to 'client/go/cmd/config.go')
-rw-r--r--client/go/cmd/config.go23
1 files changed, 13 insertions, 10 deletions
diff --git a/client/go/cmd/config.go b/client/go/cmd/config.go
index 56d4321c11d..bb1662d0b07 100644
--- a/client/go/cmd/config.go
+++ b/client/go/cmd/config.go
@@ -32,8 +32,9 @@ func init() {
}
var configCmd = &cobra.Command{
- Use: "config",
- Short: "Configure default values for flags",
+ Use: "config",
+ Short: "Configure default values for flags",
+ DisableAutoGenTag: true,
Run: func(cmd *cobra.Command, args []string) {
// Root command does nothing
cmd.Help()
@@ -42,10 +43,11 @@ var configCmd = &cobra.Command{
}
var setConfigCmd = &cobra.Command{
- Use: "set <option> <value>",
- Short: "Set a configuration option.",
- Example: "$ vespa config set target cloud",
- Args: cobra.ExactArgs(2),
+ Use: "set <option> <value>",
+ Short: "Set a configuration option.",
+ Example: "$ vespa config set target cloud",
+ DisableAutoGenTag: true,
+ Args: cobra.ExactArgs(2),
Run: func(cmd *cobra.Command, args []string) {
if err := setOption(args[0], args[1]); err != nil {
log.Print(err)
@@ -56,10 +58,11 @@ var setConfigCmd = &cobra.Command{
}
var getConfigCmd = &cobra.Command{
- Use: "get [<option>]",
- Short: "Get a configuration option",
- Example: "$ vespa config get target",
- Args: cobra.MaximumNArgs(1),
+ Use: "get [<option>]",
+ Short: "Get a configuration option",
+ Example: "$ vespa config get target",
+ Args: cobra.MaximumNArgs(1),
+ DisableAutoGenTag: true,
Run: func(cmd *cobra.Command, args []string) {
if len(args) == 0 { // Print all values
printOption(targetFlag)