package main import ( "fmt" "os" ) func main() { if len(os.Args[1:]) < 2 { usage() return } command := os.Args[1] switch { case command == "init": machineId := os.Args[2] initCommand(machineId) } } func usage() { fmt.Println("Configuration Hub v0.1") fmt.Println("") fmt.Println("Usage:") fmt.Println("\tchub init - connects your server to the config hub machine id ") }