Merge pull request #368 from trheyi/main

[fix] start command
This commit is contained in:
Max 2023-04-13 16:39:26 +08:00 committed by GitHub
commit b02e9459f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,9 +192,16 @@ var startCmd = &cobra.Command{
case http.CLOSED:
fmt.Println(color.GreenString(L("✨EXITED✨")))
watchDone <- 1
return
case http.ERROR:
color.Red("Fatal: check the error information in the log")
watchDone <- 1
return
default:
fmt.Println("hello", v)
fmt.Println("Signal:", v)
}
case <-interrupt: