Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): Added example to --help output for bcrypt #15838

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/argocd/commands/bcrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ func NewBcryptCmd() *cobra.Command {
)
var bcryptCmd = &cobra.Command{
Use: "bcrypt",
Short: "Generate bcrypt hash for the admin password",
Short: "Generate bcrypt hash for any password",
Example: `# Generate bcrypt hash for any password
argocd account bcrypt --password YOUR_PASSWORD`,
Run: func(cmd *cobra.Command, args []string) {
bytePassword := []byte(password)
// Hashing the password
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/commands/argocd_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ argocd account [flags]
### SEE ALSO

* [argocd](argocd.md) - argocd controls a Argo CD server
* [argocd account bcrypt](argocd_account_bcrypt.md) - Generate bcrypt hash for the admin password
* [argocd account bcrypt](argocd_account_bcrypt.md) - Generate bcrypt hash for any password
* [argocd account can-i](argocd_account_can-i.md) - Can I
* [argocd account delete-token](argocd_account_delete-token.md) - Deletes account token
* [argocd account generate-token](argocd_account_generate-token.md) - Generate account token
Expand Down
9 changes: 8 additions & 1 deletion docs/user-guide/commands/argocd_account_bcrypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@

## argocd account bcrypt

Generate bcrypt hash for the admin password
Generate bcrypt hash for any password

```
argocd account bcrypt [flags]
```

### Examples

```
# Generate bcrypt hash for any password
argocd account bcrypt --password YOUR_PASSWORD
```

### Options

```
Expand Down
Loading