From 79ef12d26d599951fa7af23ec922bad75ccf4fb6 Mon Sep 17 00:00:00 2001 From: Ayrton Date: Wed, 14 Oct 2026 13:31:15 +0200 Subject: [PATCH] Deprecate pscale branch sidecar Sidecar settings are configuration profile parameters now, so point people at pscale branch config-profile update. Co-Authored-By: Claude Opus 5.5 (1M context) --- internal/cmd/sidecar/sidecar.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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(