Skip to content

Commit

Permalink
cli: align descriptions of --cert and --key flags (#775)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Weiße <[email protected]>
  • Loading branch information
daniel-weisse authored Dec 10, 2024
1 parent 62bacea commit a632a9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cli/internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func webhookDNSName(namespace string) string {
}

func addClientAuthFlags(cmd *cobra.Command, flags *pflag.FlagSet) {
flags.StringP("cert", "c", "", "PEM encoded admin certificate file")
flags.StringP("key", "k", "", "PEM encoded admin key file")
flags.StringP("cert", "c", "", "PEM encoded MarbleRun user certificate file")
flags.StringP("key", "k", "", "PEM encoded MarbleRun user key file")
cmd.MarkFlagsRequiredTogether("key", "cert")

flags.String("pkcs11-config", "", "Path to a PKCS#11 configuration file to load the client certificate with")
Expand Down
12 changes: 6 additions & 6 deletions docs/docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ marblerun manifest update apply update-manifest.json $MARBLERUN --cert=admin-cer
### Options

```
-c, --cert string PEM encoded admin certificate file
-c, --cert string PEM encoded MarbleRun user certificate file
-h, --help help for apply
-k, --key string PEM encoded admin key file
-k, --key string PEM encoded MarbleRun user key file
--pkcs11-cert-id string ID of the certificate in the PKCS#11 token
--pkcs11-cert-label string Label of the certificate in the PKCS#11 token
--pkcs11-config string Path to a PKCS#11 configuration file to load the client certificate with
Expand Down Expand Up @@ -472,9 +472,9 @@ marblerun manifest update acknowledge update-manifest.json $MARBLERUN --cert=adm
### Options

```
-c, --cert string PEM encoded admin certificate file
-c, --cert string PEM encoded MarbleRun user certificate file
-h, --help help for acknowledge
-k, --key string PEM encoded admin key file
-k, --key string PEM encoded MarbleRun user key file
--pkcs11-cert-id string ID of the certificate in the PKCS#11 token
--pkcs11-cert-label string Label of the certificate in the PKCS#11 token
--pkcs11-config string Path to a PKCS#11 configuration file to load the client certificate with
Expand Down Expand Up @@ -516,9 +516,9 @@ marblerun manifest update cancel $MARBLERUN --cert=admin-cert.pem --key=admin-ke
### Options

```
-c, --cert string PEM encoded admin certificate file
-c, --cert string PEM encoded MarbleRun user certificate file
-h, --help help for cancel
-k, --key string PEM encoded admin key file
-k, --key string PEM encoded MarbleRun user key file
--pkcs11-cert-id string ID of the certificate in the PKCS#11 token
--pkcs11-cert-label string Label of the certificate in the PKCS#11 token
--pkcs11-config string Path to a PKCS#11 configuration file to load the client certificate with
Expand Down

0 comments on commit a632a9b

Please sign in to comment.