I think things are pretty good

This commit is contained in:
2023-12-01 10:57:15 -06:00
parent ff58d1ddf4
commit 0fc78d4b4c
8 changed files with 65 additions and 69 deletions

View File

@@ -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")