Files
old-confighub/chub/main.go
2015-05-28 15:56:48 +02:00

30 lines
426 B
Go

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 <machine-uuid> - connects your server to the config hub machine id <machine-uiid>")
}