diff --git a/cmd/logsEnvironmentComponent.go b/cmd/logsEnvironmentComponent.go index fcf2e7f..09e8d58 100644 --- a/cmd/logsEnvironmentComponent.go +++ b/cmd/logsEnvironmentComponent.go @@ -179,7 +179,7 @@ func init() { logsCmd.AddCommand(logsEnvironmentComponentCmd) logsEnvironmentComponentCmd.Flags().StringP(flagnames.Application, "a", "", "Name of the application owning the component") logsEnvironmentComponentCmd.Flags().StringP(flagnames.Environment, "e", "", "Environment the component runs in") - logsEnvironmentComponentCmd.Flags().StringP(flagnames.Component, "n", "", "The component to follow") + logsEnvironmentComponentCmd.Flags().String(flagnames.Component, "", "The component to follow") logsEnvironmentComponentCmd.Flags().BoolP(flagnames.Previous, "p", false, "If set, print the logs for the previous instance of the container in a component pod, if it exists") logsEnvironmentComponentCmd.Flags().DurationP(flagnames.Since, "s", settings.DeltaRefreshApplication, "If set, start get logs from the specified time, eg. 5m or 12h") diff --git a/cmd/setEnvironmentSecret.go b/cmd/setEnvironmentSecret.go index 7d2641a..0761d3e 100644 --- a/cmd/setEnvironmentSecret.go +++ b/cmd/setEnvironmentSecret.go @@ -134,7 +134,7 @@ func init() { setCmd.AddCommand(setEnvironmentSecretCmd) setEnvironmentSecretCmd.Flags().StringP(flagnames.Application, "a", "", "Name of the application to set secret for") setEnvironmentSecretCmd.Flags().StringP(flagnames.Environment, "e", "", "Environment to set secret in") - setEnvironmentSecretCmd.Flags().StringP(flagnames.Component, "n", "", "Component to set the secret for") + setEnvironmentSecretCmd.Flags().String(flagnames.Component, "", "Component to set the secret for") setEnvironmentSecretCmd.Flags().StringP(flagnames.Secret, "s", "", "Name of the secret to set") setEnvironmentSecretCmd.Flags().StringP(flagnames.Value, "v", "", "Value of the secret to set") setEnvironmentSecretCmd.Flags().Bool(flagnames.AwaitReconcile, true, "Await reconciliation in Radix. Default is true") diff --git a/cmd/setEnvironmentVariable.go b/cmd/setEnvironmentVariable.go index bc8cf1f..1a74105 100644 --- a/cmd/setEnvironmentVariable.go +++ b/cmd/setEnvironmentVariable.go @@ -136,7 +136,7 @@ func init() { setCmd.AddCommand(setEnvironmentVariableCmd) setEnvironmentVariableCmd.Flags().StringP(flagnames.Application, "a", "", "Name of the application to set variable for") setEnvironmentVariableCmd.Flags().StringP(flagnames.Environment, "e", "", "Environment to set variable in") - setEnvironmentVariableCmd.Flags().StringP(flagnames.Component, "n", "", "Component to set the variable for") + setEnvironmentVariableCmd.Flags().String(flagnames.Component, "", "Component to set the variable for") setEnvironmentVariableCmd.Flags().StringP(flagnames.Variable, "", "", "Name of the variable to set") setEnvironmentVariableCmd.Flags().StringP(flagnames.Value, "v", "", "Value of the variable to set") setEnvironmentVariableCmd.Flags().Bool(flagnames.AwaitReconcile, true, "Await reconciliation in Radix. Default is true") diff --git a/cmd/setExternalDnsTls.go b/cmd/setExternalDnsTls.go index a3c245c..7f16c87 100644 --- a/cmd/setExternalDnsTls.go +++ b/cmd/setExternalDnsTls.go @@ -146,7 +146,7 @@ func isComponentExternalDNSReconciled(apiClient *apiclient.Radixapi, appName, en func init() { setExternalDnsTlsCmd.Flags().StringP(flagnames.Application, "a", "", "Name of the application") setExternalDnsTlsCmd.Flags().StringP(flagnames.Environment, "e", "", "Name of the environment") - setExternalDnsTlsCmd.Flags().StringP(flagnames.Component, "n", "", "Name of the component") + setExternalDnsTlsCmd.Flags().String(flagnames.Component, "", "Name of the component") setExternalDnsTlsCmd.Flags().String(flagnames.Alias, "", "External DNS alias to update") setExternalDnsTlsCmd.Flags().String(flagnames.Certificate, "", "Certificate (PEM format)") setExternalDnsTlsCmd.Flags().String(flagnames.CertificateFromFile, "", "Read certificate (PEM format) from file") diff --git a/cmd/startComponent.go b/cmd/startComponent.go index c8feb0b..1a85ac1 100644 --- a/cmd/startComponent.go +++ b/cmd/startComponent.go @@ -79,7 +79,7 @@ func init() { startCmd.AddCommand(startComponentCmd) startComponentCmd.Flags().StringP(flagnames.Application, "a", "", "Name of the application namespace") startComponentCmd.Flags().StringP(flagnames.Environment, "e", "", "Name of the environment of the application") - startComponentCmd.Flags().StringP(flagnames.Component, "n", "", "Name of the component to start") + startComponentCmd.Flags().String(flagnames.Component, "", "Name of the component to start") _ = startComponentCmd.RegisterFlagCompletionFunc(flagnames.Application, completion.ApplicationCompletion) _ = startComponentCmd.RegisterFlagCompletionFunc(flagnames.Environment, completion.EnvironmentCompletion) _ = startComponentCmd.RegisterFlagCompletionFunc(flagnames.Component, completion.ComponentCompletion)