add --all flag to every command where it makes sense

pull/4/head
iwilltry42 6 years ago
parent a35051001a
commit 58a32b3003
  1. 16
      main.go

@ -187,6 +187,10 @@ func main() {
Value: "k3s_default",
Usage: "name of the cluster",
},
cli.BoolFlag{
Name: "all, a",
Usage: "delete all existing clusters (this ignores the --name/-n flag)",
},
},
Action: deleteCluster,
},
@ -200,6 +204,10 @@ func main() {
Value: "k3s_default",
Usage: "name of the cluster",
},
cli.BoolFlag{
Name: "all, a",
Usage: "stop all running clusters (this ignores the --name/-n flag)",
},
},
Action: stopCluster,
},
@ -213,6 +221,10 @@ func main() {
Value: "k3s_default",
Usage: "name of the cluster",
},
cli.BoolFlag{
Name: "all, a",
Usage: "start all stopped clusters (this ignores the --name/-n flag)",
},
},
Action: startCluster,
},
@ -238,6 +250,10 @@ func main() {
Value: "k3s_default",
Usage: "name of the cluster",
},
cli.BoolFlag{
Name: "all, a",
Usage: "get kubeconfig for all clusters (this ignores the --name/-n flag)",
},
},
Action: getKubeConfig,
},

Loading…
Cancel
Save