Skip to content

Commit

Permalink
feat(cli): add the repo-example (argoproj#15690) (argoproj#15865)
Browse files Browse the repository at this point in the history
* updating the repo-example Signed-off-by: Author Name gaurang.kudale02@gmail.com

Signed-off-by: Gaurang Kudale <gaurang.kudale02@gmail.com>

* update the repo.go for rm  Signed-off-by: Author Name gaurang.kudale02@gmail.com

Signed-off-by: Gaurang Kudale <gaurang.kudale02@gmail.com>

* update the reverting changes Signed-off-by: Author Name gaurang.kudale02@gmail.com

Signed-off-by: Gaurang Kudale <gaurang.kudale02@gmail.com>

---------

Signed-off-by: Gaurang Kudale <gaurang.kudale02@gmail.com>
  • Loading branch information
gaurangkudale authored and Hariharasuthan99 committed Jun 16, 2024
1 parent 0fe6b04 commit 241acd5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/argocd/commands/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ func NewRepoCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
c.HelpFunc()(c, args)
os.Exit(1)
},
Example: `
# Add git repository connection parameters
argocd repo add git@git.example.com:repos/repo
# Get a Configured Repository by URL
argocd repo get https://github.com/yourusername/your-repo.git
# List Configured Repositories
argocd repo list
# Remove Repository Credentials
argocd repo rm https://github.com/yourusername/your-repo.git
`,
}

command.AddCommand(NewRepoAddCommand(clientOpts))
Expand Down
18 changes: 18 additions & 0 deletions docs/user-guide/commands/argocd_repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ Manage repository connection parameters
argocd repo [flags]
```

### Examples

```
# Add git repository connection parameters
argocd repo add git@git.example.com:repos/repo
# Get a Configured Repository by URL
argocd repo get https://github.com/yourusername/your-repo.git
# List Configured Repositories
argocd repo list
# Remove Repository Credentials
argocd repo rm https://github.com/yourusername/your-repo.git
```

### Options

```
Expand Down

0 comments on commit 241acd5

Please sign in to comment.