github.com/castai/kvisor@v1.7.1-0.20240516114728-b3572a2607b5/cmd/agent/daemon/main.go (about)

     1  package main
     2  
     3  import (
     4  	"log/slog"
     5  	"os"
     6  
     7  	"github.com/spf13/cobra"
     8  )
     9  
    10  var (
    11  	Version = "local"
    12  )
    13  
    14  func main() {
    15  	root := cobra.Command{
    16  		Use: "kvisor-daemon",
    17  	}
    18  
    19  	root.AddCommand(
    20  		NewRunCommand(Version),
    21  		NewClickhouseInitCommand(),
    22  	)
    23  
    24  	if err := root.Execute(); err != nil {
    25  		slog.Error(err.Error())
    26  		os.Exit(1)
    27  	}
    28  }