annotation/main.go

27 lines
391 B
Go
Raw Normal View History

2023-05-12 16:53:21 +08:00
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)
}
}