Skip to content

Commit

Permalink
feat(cli): add the repocred-list-example (argoproj#15690) (argoproj#1…
Browse files Browse the repository at this point in the history
…5869)

* update the repocreds-list changes Signed-off-by: Author Name [email protected]

Signed-off-by: Gaurang Kudale <[email protected]>

* update the string Signed-off-by: Author Name [email protected]

Signed-off-by: Gaurang Kudale <[email protected]>

---------

Signed-off-by: Gaurang Kudale <[email protected]>
Signed-off-by: jmilic1 <[email protected]>
  • Loading branch information
gaurangkudale authored and jmilic1 committed Nov 13, 2023
1 parent 3fdd722 commit 88c5a62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions cmd/argocd/commands/repocreds.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,17 @@ func NewRepoCredsListCommand(clientOpts *argocdclient.ClientOptions) *cobra.Comm
Use: "list",
Short: "List configured repository credentials",
Example: templates.Examples(`
# List all the configured repository credentials
# List all repo urls
argocd repocreds list
# List all the configured repository credentials in json format
# List all repo urls in json format
argocd repocreds list -o json
# List all repo urls in yaml format
argocd repocreds list -o yaml
# List all repo urls in url format
argocd repocreds list -o url
`),
Run: func(c *cobra.Command, args []string) {
ctx := c.Context()
Expand Down
10 changes: 8 additions & 2 deletions docs/user-guide/commands/argocd_repocreds_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ argocd repocreds list [flags]
### Examples

```
# List all the configured repository credentials
# List all repo urls
argocd repocreds list
# List all the configured repository credentials in json format
# List all repo urls in json format
argocd repocreds list -o json
# List all repo urls in yaml format
argocd repocreds list -o yaml
# List all repo urls in url format
argocd repocreds list -o url
```

### Options
Expand Down

0 comments on commit 88c5a62

Please sign in to comment.