use ls command instead of list by default

This commit is contained in:
Pavel Sviderski
2024-10-31 18:35:12 +10:00
parent e6df331fb8
commit 61dc97228d
+2 -2
View File
@@ -8,8 +8,8 @@ import (
func NewListCommand() *cobra.Command { func NewListCommand() *cobra.Command {
var cluster string var cluster string
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "list", Use: "ls",
Aliases: []string{"ls"}, Aliases: []string{"list"},
Short: "List machines in a cluster", Short: "List machines in a cluster",
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
uncli := cmd.Context().Value("cli").(*cli.CLI) uncli := cmd.Context().Value("cli").(*cli.CLI)