diff --git a/cmd/scale.go b/cmd/scale.go index d06a427..4b572d1 100644 --- a/cmd/scale.go +++ b/cmd/scale.go @@ -16,17 +16,16 @@ package cmd import ( "github.com/equinor/radix-cli/pkg/flagnames" - "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) // startCmd represents the start command var scaleCmd = &cobra.Command{ - Use: "scale", - Short: "Scale component replicas", - Long: `Scale component replicas.`, + Use: "scale", + Short: "Scale component replicas", + Long: `Scale component replicas.`, + Deprecated: "Please use 'rx scale component' instead. Will be removed after September 2025", RunE: func(cmd *cobra.Command, args []string) error { - logrus.Warn("This command is deprecated. Please use 'rx scale component' instead. Will be removed after September 2025") return scaleComponentCmd.RunE(cmd, args) }, } diff --git a/cmd/scaleComponent.go b/cmd/scaleComponent.go index 7d66e6c..c3bdda2 100644 --- a/cmd/scaleComponent.go +++ b/cmd/scaleComponent.go @@ -32,9 +32,8 @@ var scaleComponentCmd = &cobra.Command{ Short: "Scale component replicas", Long: `Used for manually scaling up or down replicas of a Radix application component. Note: Manual scaling will persist across deployments, and will disable autoscaling. - -Examples: - +`, + Example: ` # Scale up component to 2 replicas rx scale --application radix-test --environment dev --component component-abc --replicas 2 diff --git a/cmd/startComponent.go b/cmd/startComponent.go index f573951..4de66a6 100644 --- a/cmd/startComponent.go +++ b/cmd/startComponent.go @@ -33,8 +33,8 @@ var startComponentCmd = &cobra.Command{ Deprecated: Use 'rx scale component --reset' instead Resets a manully scaled component to resume normal operations again.`, + Deprecated: " Use 'rx scale component --reset' instead. Will be removed after September 2025", RunE: func(cmd *cobra.Command, args []string) error { - logrus.Warn("This command is deprecated. Please use 'rx scale component --reset' instead. Will be removed after September 2025") appName, err := getAppNameFromConfigOrFromParameter(cmd, flagnames.Application) if err != nil { return err