chore: repo command give more hints. (#11849)

Signed-off-by: yanggang <gang.yang@daocloud.io>

Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
杨刚 2023-01-26 10:54:04 +08:00 committed by GitHub
parent b2a6387ca0
commit 61f6530e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -309,7 +309,7 @@ func NewRepoListCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
},
}
command.Flags().StringVarP(&output, "output", "o", "wide", "Output format. One of: json|yaml|wide|url")
command.Flags().StringVar(&refresh, "refresh", "", "Force a cache refresh on connection status")
command.Flags().StringVar(&refresh, "refresh", "", "Force a cache refresh on connection status , must be one of: 'hard'")
return command
}
@ -360,6 +360,6 @@ func NewRepoGetCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
},
}
command.Flags().StringVarP(&output, "output", "o", "wide", "Output format. One of: json|yaml|wide|url")
command.Flags().StringVar(&refresh, "refresh", "", "Force a cache refresh on connection status")
command.Flags().StringVar(&refresh, "refresh", "", "Force a cache refresh on connection status , must be one of: 'hard'")
return command
}

View file

@ -11,7 +11,7 @@ argocd repo get [flags]
```
-h, --help help for get
-o, --output string Output format. One of: json|yaml|wide|url (default "wide")
--refresh string Force a cache refresh on connection status
--refresh string Force a cache refresh on connection status , must be one of: 'hard'
```
### Options inherited from parent commands

View file

@ -11,7 +11,7 @@ argocd repo list [flags]
```
-h, --help help for list
-o, --output string Output format. One of: json|yaml|wide|url (default "wide")
--refresh string Force a cache refresh on connection status
--refresh string Force a cache refresh on connection status , must be one of: 'hard'
```
### Options inherited from parent commands