Files
old-confighub/chub/main.go

30 lines
426 B
Go
Raw Normal View History

2015-05-27 20:24:22 +02:00
package main
2015-05-28 15:56:48 +02:00
import (
"fmt"
"os"
)
2015-05-27 20:24:22 +02:00
func main() {
2015-05-28 15:56:48 +02:00
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>")
2015-05-27 20:24:22 +02:00
}