hpds_jkw_web/main.go

28 lines
372 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
"hpds-iot-web/cmd"
"os"
)
var (
rootCmd = &cobra.Command{
Use: "hpds_web",
Long: "hpds_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)
}
}