Skip to content

Commit 8b567c9

Browse files
authored
chore(cli): fix argocd repo command usage docs and description (#23364)
Signed-off-by: Cheng Fang <[email protected]>
1 parent 5091f9a commit 8b567c9

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

cmd/argocd/commands/repo.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ argocd repo get https://github.com/yourusername/your-repo.git
4141
# List Configured Repositories
4242
argocd repo list
4343
44-
# Remove Repository Credentials
44+
# Remove Configured Repositories
4545
argocd repo rm https://github.com/yourusername/your-repo.git
4646
`,
4747
}
@@ -106,7 +106,7 @@ func NewRepoAddCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
106106

107107
command := &cobra.Command{
108108
Use: "add REPOURL",
109-
Short: "Add git repository connection parameters",
109+
Short: "Add git, oci or helm repository connection parameters",
110110
Example: repoAddExamples,
111111
Run: func(c *cobra.Command, args []string) {
112112
ctx := c.Context()
@@ -264,12 +264,12 @@ func NewRepoAddCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
264264
return command
265265
}
266266

267-
// NewRepoRemoveCommand returns a new instance of an `argocd repo remove` command
267+
// NewRepoRemoveCommand returns a new instance of an `argocd repo rm` command
268268
func NewRepoRemoveCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
269269
var project string
270270
command := &cobra.Command{
271-
Use: "rm REPO",
272-
Short: "Remove repository credentials",
271+
Use: "rm REPO ...",
272+
Short: "Remove configured repositories",
273273
Run: func(c *cobra.Command, args []string) {
274274
ctx := c.Context()
275275

@@ -373,7 +373,7 @@ func NewRepoGetCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
373373
project string
374374
)
375375
command := &cobra.Command{
376-
Use: "get",
376+
Use: "get REPO",
377377
Short: "Get a configured repository by URL",
378378
Run: func(c *cobra.Command, args []string) {
379379
ctx := c.Context()

docs/user-guide/commands/argocd_repo.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/user-guide/commands/argocd_repo_add.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/user-guide/commands/argocd_repo_get.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/user-guide/commands/argocd_repo_rm.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)