I think things are pretty good
This commit is contained in:
@@ -36,9 +36,9 @@ var rootCmd = &cobra.Command{
|
||||
// Save the changes when the app quits
|
||||
fmt.Println("\nFinishing up...")
|
||||
a.SendQuitMessage()
|
||||
a.Running = false
|
||||
a.Stop()
|
||||
}()
|
||||
for a.Running {
|
||||
for a.IsRunning() {
|
||||
time.Sleep(time.Second * 1)
|
||||
}
|
||||
fmt.Println("Done")
|
||||
|
Reference in New Issue
Block a user