From 75f3974f4755f60f98f7a0917bcd4c19a83f57a1 Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Sat, 3 Jul 2021 23:00:41 -0700 Subject: [PATCH] Use all-caps for metasyntactic arguments --- cmd/kops/create_keypair.go | 2 +- cmd/kops/distrust_keypair.go | 2 +- cmd/kops/get_keypairs.go | 2 +- cmd/kops/promote_keypair.go | 2 +- docs/cli/kops_create_keypair.md | 2 +- docs/cli/kops_distrust_keypair.md | 2 +- docs/cli/kops_get_keypairs.md | 2 +- docs/cli/kops_promote_keypair.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/kops/create_keypair.go b/cmd/kops/create_keypair.go index 9f51aa4943..ab47edfddd 100644 --- a/cmd/kops/create_keypair.go +++ b/cmd/kops/create_keypair.go @@ -94,7 +94,7 @@ func NewCmdCreateKeypair(f *util.Factory, out io.Writer) *cobra.Command { options := &CreateKeypairOptions{} cmd := &cobra.Command{ - Use: "keypair keyset", + Use: "keypair KEYSET", Short: createKeypairShort, Long: createKeypairLong, Example: createKeypairExample, diff --git a/cmd/kops/distrust_keypair.go b/cmd/kops/distrust_keypair.go index eab579e6f5..5cf8f3ade7 100644 --- a/cmd/kops/distrust_keypair.go +++ b/cmd/kops/distrust_keypair.go @@ -67,7 +67,7 @@ func NewCmdDistrustKeypair(f *util.Factory, out io.Writer) *cobra.Command { options := &DistrustKeypairOptions{} cmd := &cobra.Command{ - Use: "keypair keyset [id]...", + Use: "keypair KEYSET [ID]...", Short: distrustKeypairShort, Long: distrustKeypairLong, Example: distrustKeypairExample, diff --git a/cmd/kops/get_keypairs.go b/cmd/kops/get_keypairs.go index b9a0183ab5..b88cdfaa6a 100644 --- a/cmd/kops/get_keypairs.go +++ b/cmd/kops/get_keypairs.go @@ -54,7 +54,7 @@ func NewCmdGetKeypairs(f *util.Factory, out io.Writer, getOptions *GetOptions) * GetOptions: getOptions, } cmd := &cobra.Command{ - Use: "keypairs [keyset]...", + Use: "keypairs [KEYSET]...", Aliases: []string{"keypair"}, Short: getKeypairShort, Example: getKeypairExample, diff --git a/cmd/kops/promote_keypair.go b/cmd/kops/promote_keypair.go index bde0a5fcbd..7ad7a19477 100644 --- a/cmd/kops/promote_keypair.go +++ b/cmd/kops/promote_keypair.go @@ -59,7 +59,7 @@ func NewCmdPromoteKeypair(f *util.Factory, out io.Writer) *cobra.Command { options := &PromoteKeypairOptions{} cmd := &cobra.Command{ - Use: "keypair keyset [id]", + Use: "keypair KEYSET [ID]", Short: promoteKeypairShort, Long: promoteKeypairLong, Example: promoteKeypairExample, diff --git a/docs/cli/kops_create_keypair.md b/docs/cli/kops_create_keypair.md index 800be5c2b7..8198840b81 100644 --- a/docs/cli/kops_create_keypair.md +++ b/docs/cli/kops_create_keypair.md @@ -18,7 +18,7 @@ Add a CA certificate and private key to a keyset. One of the certificate/private key pairs in each keyset must be primary. The primary keypair is the one used to issue certificates (or, for the "service-account" keyset, service-account tokens). As a consequence, the first entry in a keyset must be made primary. ``` -kops create keypair keyset [flags] +kops create keypair KEYSET [flags] ``` ### Examples diff --git a/docs/cli/kops_distrust_keypair.md b/docs/cli/kops_distrust_keypair.md index ff50ae76b8..e559682bbe 100644 --- a/docs/cli/kops_distrust_keypair.md +++ b/docs/cli/kops_distrust_keypair.md @@ -16,7 +16,7 @@ Distrust one or more keypairs in a keyset. If no keypair IDs are specified, distrusts all keypairs in the keyset that are older than the primary keypair. ``` -kops distrust keypair keyset [id]... [flags] +kops distrust keypair KEYSET [ID]... [flags] ``` ### Examples diff --git a/docs/cli/kops_get_keypairs.md b/docs/cli/kops_get_keypairs.md index 5b57dff046..3519607a9e 100644 --- a/docs/cli/kops_get_keypairs.md +++ b/docs/cli/kops_get_keypairs.md @@ -6,7 +6,7 @@ Get one or many keypairs. ``` -kops get keypairs [keyset]... [flags] +kops get keypairs [KEYSET]... [flags] ``` ### Examples diff --git a/docs/cli/kops_promote_keypair.md b/docs/cli/kops_promote_keypair.md index d0755b6881..b5a3adf73f 100644 --- a/docs/cli/kops_promote_keypair.md +++ b/docs/cli/kops_promote_keypair.md @@ -10,7 +10,7 @@ Promote a keypair to be the primary, used for signing. Promote a keypair to be the primary, used for signing. ``` -kops promote keypair keyset [id] [flags] +kops promote keypair KEYSET [ID] [flags] ``` ### Examples