|
|
@ -39,8 +39,10 @@ func main() {
|
|
|
|
|
|
|
|
|
|
|
|
switch options.Command {
|
|
|
|
switch options.Command {
|
|
|
|
case "start":
|
|
|
|
case "start":
|
|
|
|
|
|
|
|
fmt.Println("Starting a new session...")
|
|
|
|
err = smug.StartSession(*config, options.Windows)
|
|
|
|
err = smug.StartSession(*config, options.Windows)
|
|
|
|
case "stop":
|
|
|
|
case "stop":
|
|
|
|
|
|
|
|
fmt.Println("Terminating session...")
|
|
|
|
err = smug.StopSession(*config)
|
|
|
|
err = smug.StopSession(*config)
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
err = fmt.Errorf("Unknown command %q", options.Command)
|
|
|
|
err = fmt.Errorf("Unknown command %q", options.Command)
|
|
|
|