diff --git a/internal/cmd/sidecar/sidecar.go b/internal/cmd/sidecar/sidecar.go index e3d2a25a..c54b5b0c 100644 --- a/internal/cmd/sidecar/sidecar.go +++ b/internal/cmd/sidecar/sidecar.go @@ -12,11 +12,15 @@ import ( "github.com/spf13/cobra" ) +const deprecation = "use \"pscale branch config-profile update --parameters sidecar.=\" instead." + func SidecarCmd(ch *cmdutil.Helper) *cobra.Command { cmd := &cobra.Command{ - Use: "sidecar ", - Short: "Manage sidecars for a Neki database branch", - Long: "Manage sidecars for a Neki database branch.\n\nEach configuration profile has one sidecar. Sidecars are created and deleted with their profile. This command is only supported for Neki databases.", + Use: "sidecar ", + Short: "Manage sidecars for a Neki database branch", + Long: "Manage sidecars for a Neki database branch.\n\nEach configuration profile has one sidecar. Sidecars are created and deleted with their profile. This command is only supported for Neki databases.", + Deprecated: deprecation, + PersistentPreRunE: cmdutil.WarnDeprecated("sidecar", deprecation, cmdutil.CheckAuthentication(ch.Config)), } cmd.AddCommand(