hpds_control_center/main.go

28 lines
417 B
Go
Raw Permalink Normal View History

2023-03-23 15:58:12 +08:00
package main
import (
"fmt"
"github.com/spf13/cobra"
"hpds_control_center/cmd"
"os"
)
var (
rootCmd = &cobra.Command{
Use: "hpds_control_center",
Long: "hpds_control_center is a task control center",
Version: "0.1",
}
)
func init() {
rootCmd.AddCommand(cmd.NewStartCmd())
}
func main() {
if err := rootCmd.Execute(); err != nil {
_, _ = fmt.Fprint(os.Stderr, err.Error())
os.Exit(1)
}
}