4
0
Fork 2
mirror of https://gerrit.hackerspace.pl/hscloud synced 2025-02-11 03:16:44 +00:00
hscloud/cluster/clustercfg/main.go

26 lines
477 B
Go
Raw Permalink Normal View History

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)
}
}