27 lines
467 B
Go
27 lines
467 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",
|
|
}
|
|
|
|
command.AddCommand(
|
|
newListWorkersCommand(),
|
|
newListVMsCommand(),
|
|
newListServiceAccountsCommand(),
|
|
newListImagePullsCommand(),
|
|
newListImagePullJobsCommand(),
|
|
)
|
|
|
|
command.Flags().BoolVarP(&quiet, "", "q", false, "only show resource names")
|
|
|
|
return command
|
|
}
|