mirror of
https://gerrit.hackerspace.pl/hscloud
synced 2025-01-20 17:03:54 +00:00
radex
274e70f557
Change-Id: I01fa3c40ac00cfa022d438163ba9e2d3ef66ac72 Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/2090 Reviewed-by: q3k <q3k@hackerspace.pl>
25 lines
477 B
Go
25 lines
477 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var flagCluster string
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "clustercfg",
|
|
Short: "admin management tool for hscloud clusters",
|
|
}
|
|
|
|
func main() {
|
|
rootCmd.PersistentFlags().StringVarP(&flagCluster, "cluster", "c", "", "Name of the hscloud cluster to manage (required)")
|
|
rootCmd.MarkPersistentFlagRequired("cluster")
|
|
|
|
if err := rootCmd.Execute(); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
}
|