chore: rename cluster -> context option in commands for consistency

This commit is contained in:
Pasha Sviderski
2025-09-11 20:21:07 +10:00
parent 001acfc6a5
commit 8a273dbf63
6 changed files with 18 additions and 26 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ import (
type inspectOptions struct {
service string
cluster string
context string
}
func NewInspectCommand() *cobra.Command {
@@ -31,14 +31,14 @@ func NewInspectCommand() *cobra.Command {
},
}
cmd.Flags().StringVarP(
&opts.cluster, "context", "c", "",
&opts.context, "context", "c", "",
"Name of the cluster context. (default is the current context)",
)
return cmd
}
func inspect(ctx context.Context, uncli *cli.CLI, opts inspectOptions) error {
client, err := uncli.ConnectCluster(ctx, opts.cluster)
client, err := uncli.ConnectCluster(ctx, opts.context)
if err != nil {
return fmt.Errorf("connect to cluster: %w", err)
}