running status
This commit is contained in:
+1
-3
@@ -39,8 +39,6 @@ to quickly create a Cobra application.`,
|
|||||||
Run: start,
|
Run: start,
|
||||||
}
|
}
|
||||||
|
|
||||||
var run bool
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(startCmd)
|
rootCmd.AddCommand(startCmd)
|
||||||
|
|
||||||
@@ -75,7 +73,7 @@ func start(cmd *cobra.Command, args []string) {
|
|||||||
sig := <-sigs
|
sig := <-sigs
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println(sig)
|
fmt.Println(sig)
|
||||||
run = false
|
utils.ServerRunning = false
|
||||||
done <- true
|
done <- true
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user