orchard/internal/command/list/list.go

21 lines
386 B
Go

package list
import (
"github.com/spf13/cobra"
)
var quiet bool
func NewCommand() *cobra.Command {
command := &cobra.Command{
Use: "list",
Short: "List resources on the controller (workers, VMs)",
}
command.AddCommand(newListWorkersCommand(), newListVMsCommand())
command.PersistentFlags().BoolVarP(&quiet, "", "q", false, "only show resource names")
return command
}