diff --git a/AGENTS.md b/AGENTS.md index cf5e825b..f827c59f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -396,7 +396,7 @@ Caveats: ## Vitess database throttler -Database-level default for future deploy request migrations (not per-DR, not tablet/vtctld): +Database-level default for future deploy request migrations (not per-DR, not tablet/vtctl): ```bash pscale database throttler show --org --format json diff --git a/internal/cmd/branch/vtctld/planned_reparent.go b/internal/cmd/branch/vtctld/planned_reparent.go index 3723a5df..a1129605 100644 --- a/internal/cmd/branch/vtctld/planned_reparent.go +++ b/internal/cmd/branch/vtctld/planned_reparent.go @@ -33,7 +33,7 @@ func PlannedReparentShardCmd(ch *cmdutil.Helper) *cobra.Command { Both the old and new primaries must be up and running. To check on an existing operation, use the "status" subcommand: - pscale branch vtctld planned-reparent-shard status `, + pscale branch vtctl planned-reparent-shard status `, Args: cmdutil.RequiredArgs("database", "branch"), RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() diff --git a/internal/cmd/branch/vtctld/throttler.go b/internal/cmd/branch/vtctld/throttler.go index 1770f3ca..3d785848 100644 --- a/internal/cmd/branch/vtctld/throttler.go +++ b/internal/cmd/branch/vtctld/throttler.go @@ -36,7 +36,7 @@ func ThrottlerStatusCmd(ch *cmdutil.Helper) *cobra.Command { Use: "status ", Short: "Get the throttler status for a single tablet", Long: "Get the throttler status for a single tablet, identified by its alias. " + - "Discover tablet aliases with `pscale branch vtctld list-tablets`.", + "Discover tablet aliases with `pscale branch vtctl list-tablets`.", Args: cmdutil.RequiredArgs("database", "branch"), RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() @@ -87,7 +87,7 @@ func ThrottlerCheckCmd(ch *cmdutil.Helper) *cobra.Command { Use: "check ", Short: "Issue a throttler check against a single tablet", Long: "Issue a throttler check against a single tablet, identified by its alias. " + - "Discover tablet aliases with `pscale branch vtctld list-tablets`.", + "Discover tablet aliases with `pscale branch vtctl list-tablets`.", Args: cmdutil.RequiredArgs("database", "branch"), RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() diff --git a/internal/cmd/branch/vtctld/vtctld.go b/internal/cmd/branch/vtctld/vtctld.go index 8646aa7b..7bd34145 100644 --- a/internal/cmd/branch/vtctld/vtctld.go +++ b/internal/cmd/branch/vtctld/vtctld.go @@ -7,10 +7,11 @@ import ( func VtctldCmd(ch *cmdutil.Helper) *cobra.Command { cmd := &cobra.Command{ - Use: "vtctld ", - Short: "Run vtctld commands against a branch", - Long: "Run vtctld commands against a branch. This command is only supported for Vitess databases.", - Hidden: true, + Use: "vtctl ", + Aliases: []string{"vtctld"}, + Short: "Run vtctl commands against a branch", + Long: "Run vtctl commands against a branch. This command is only supported for Vitess databases.", + Hidden: true, } cmd.AddCommand(MaterializeCmd(ch)) diff --git a/internal/cmd/database/throttler.go b/internal/cmd/database/throttler.go index 5017f1fd..1f9e16ec 100644 --- a/internal/cmd/database/throttler.go +++ b/internal/cmd/database/throttler.go @@ -23,7 +23,7 @@ func ThrottlerCmd(ch *cmdutil.Helper) *cobra.Command { This sets the default throttler for future deploy requests on the database. It is not the per-deploy-request throttler (pscale deploy-request throttler) -and not the tablet/vtctld throttler (pscale branch vtctld throttler).`, +and not the tablet/vtctl throttler (pscale branch vtctl throttler).`, } cmd.AddCommand(ThrottlerShowCmd(ch))