Skip to content

Commit

Permalink
chore: repo command give more hints. (#11849)
Browse files Browse the repository at this point in the history
Signed-off-by: yanggang <gang.yang@daocloud.io>

Signed-off-by: yanggang <gang.yang@daocloud.io>
  • Loading branch information
杨刚 authored Jan 26, 2023
1 parent b2a6387 commit 61f6530
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/argocd/commands/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion docs/user-guide/commands/argocd_repo_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/commands/argocd_repo_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61f6530

Please sign in to comment.