sysmonitord/main.go
2026-03-29 00:42:38 +08:00

24 lines
346 B
Go

package main
import (
"fmt"
"os"
"sysmonitord/cmd/start"
"github.com/spf13/cobra"
)
func main() {
var rootCmd = &cobra.Command{
Use: "sysmonitord",
Short: "Sysmonitord 是一个 Linux 系统安全监控工具",
}
rootCmd.AddCommand(start.StartCmd)
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}