|
@ -11,7 +11,13 @@ import ( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func main() { |
|
|
func main() { |
|
|
c := client.Client{APIRoot: "http://10.24.4.1:8000"} |
|
|
|
|
|
|
|
|
cfg, err := loadConfig() |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
log.Println("Config at $HOME/.config/lucy.yaml failed:", err) |
|
|
|
|
|
cfg = &Config{Remote: "http://localhost:8000"} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
c := client.Client{APIRoot: cfg.Remote} |
|
|
cmd := parseCommand(os.Args[1:]) |
|
|
cmd := parseCommand(os.Args[1:]) |
|
|
|
|
|
|
|
|
switch cmd.Name { |
|
|
switch cmd.Name { |
|
|