|
|
@ -41,6 +41,10 @@ func main() {
|
|
|
|
case "start":
|
|
|
|
case "start":
|
|
|
|
fmt.Println("Starting a new session...")
|
|
|
|
fmt.Println("Starting a new session...")
|
|
|
|
err = smug.Start(*config, options.Windows)
|
|
|
|
err = smug.Start(*config, options.Windows)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
fmt.Println("Oops, an error occurred! Rolling back...")
|
|
|
|
|
|
|
|
smug.Stop(*config, options.Windows)
|
|
|
|
|
|
|
|
}
|
|
|
|
case "stop":
|
|
|
|
case "stop":
|
|
|
|
if len(options.Windows) == 0 {
|
|
|
|
if len(options.Windows) == 0 {
|
|
|
|
fmt.Println("Terminating session...")
|
|
|
|
fmt.Println("Terminating session...")
|
|
|
|