package main import ( "fmt" "github.com/spf13/cobra" "hpds_annotation/cmd" "os" ) var ( rootCmd = &cobra.Command{ Use: "hpds_edge_web", Long: "hpds_edge_web is a IoT WEB UI", 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) } }