INNER CODE UNIT · Go
init
statping/statping · cmd/main.go:30
func init() {
stopped = make(chan bool, 1)
core.New(VERSION, COMMIT)
utils.InitEnvs()
utils.Params.Set("VERSION", VERSION)
utils.Params.Set("COMMIT", COMMIT)
rootCmd.AddCommand(versionCmd)
rootCmd.AddCommand(updateCmd)
rootCmd.AddCommand(assetsCmd)
rootCmd.AddCommand(exportCmd)
rootCmd.AddCommand(importCmd)
rootCmd.AddCommand(sassCmd)
rootCmd.AddCommand(onceCmd)
rootCmd.AddCommand(envCmd)
rootCmd.AddCommand(systemctlCmd)
rootCmd.AddCommand(resetCmd)