feat(ctx): interactive ctx command to switch between cluster contexts

This commit is contained in:
Pavel Sviderski
2025-04-02 16:31:26 +10:00
parent 1bbefdd0d2
commit 20b2ca2ea5
3 changed files with 87 additions and 6 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ func NewListCommand() *cobra.Command {
var clusterContext string
cmd := &cobra.Command{
Use: "list",
Aliases: []string{"ls"},
Use: "ls",
Aliases: []string{"list"},
Short: "List available cluster contexts.",
RunE: func(cmd *cobra.Command, args []string) error {
uncli := cmd.Context().Value("cli").(*cli.CLI)