Skip to content

Commit

Permalink
revert "n" as shortcut for component
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Sep 26, 2024
1 parent 52bd7a1 commit a8c93a2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/logsEnvironmentComponent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion cmd/setEnvironmentSecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion cmd/setEnvironmentVariable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion cmd/setExternalDnsTls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion cmd/startComponent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8c93a2

Please sign in to comment.