From b8d6b110b1bbcd452c6c29433b416d7b24dd7e2d Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Fri, 31 Mar 2023 11:26:14 -0400 Subject: [PATCH] cli: add missing -y short flag to iam create (#1572) Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- cli/internal/cmd/iamcreate.go | 2 +- docs/docs/reference/cli.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/internal/cmd/iamcreate.go b/cli/internal/cmd/iamcreate.go index 1692884bb..90c6533e0 100644 --- a/cli/internal/cmd/iamcreate.go +++ b/cli/internal/cmd/iamcreate.go @@ -57,7 +57,7 @@ func newIAMCreateCmd() *cobra.Command { Args: cobra.ExactArgs(0), } - cmd.PersistentFlags().Bool("yes", false, "create the IAM configuration without further confirmation") + cmd.PersistentFlags().BoolP("yes", "y", false, "create the IAM configuration without further confirmation") cmd.PersistentFlags().Bool("generate-config", false, "automatically generate a configuration file and fill in the required fields") cmd.PersistentFlags().StringP("kubernetes", "k", semver.MajorMinor(config.Default().KubernetesVersion), "Kubernetes version to use in format MAJOR.MINOR - only usable in combination with --generate-config") diff --git a/docs/docs/reference/cli.md b/docs/docs/reference/cli.md index 058b73f07..76089955e 100644 --- a/docs/docs/reference/cli.md +++ b/docs/docs/reference/cli.md @@ -536,7 +536,7 @@ Create IAM configuration on a cloud platform for your Constellation cluster. --generate-config automatically generate a configuration file and fill in the required fields -h, --help help for create -k, --kubernetes string Kubernetes version to use in format MAJOR.MINOR - only usable in combination with --generate-config (default "v1.25") - --yes create the IAM configuration without further confirmation + -y, --yes create the IAM configuration without further confirmation ``` ### Options inherited from parent commands @@ -576,7 +576,7 @@ constellation iam create aws [flags] --force disable version compatibility checks - might result in corrupted clusters --generate-config automatically generate a configuration file and fill in the required fields -k, --kubernetes string Kubernetes version to use in format MAJOR.MINOR - only usable in combination with --generate-config (default "v1.25") - --yes create the IAM configuration without further confirmation + -y, --yes create the IAM configuration without further confirmation ``` ## constellation iam create azure @@ -608,7 +608,7 @@ constellation iam create azure [flags] --force disable version compatibility checks - might result in corrupted clusters --generate-config automatically generate a configuration file and fill in the required fields -k, --kubernetes string Kubernetes version to use in format MAJOR.MINOR - only usable in combination with --generate-config (default "v1.25") - --yes create the IAM configuration without further confirmation + -y, --yes create the IAM configuration without further confirmation ``` ## constellation iam create gcp @@ -643,7 +643,7 @@ constellation iam create gcp [flags] --force disable version compatibility checks - might result in corrupted clusters --generate-config automatically generate a configuration file and fill in the required fields -k, --kubernetes string Kubernetes version to use in format MAJOR.MINOR - only usable in combination with --generate-config (default "v1.25") - --yes create the IAM configuration without further confirmation + -y, --yes create the IAM configuration without further confirmation ``` ## constellation iam destroy