mirror of
https://github.com/Octops/quake-kube.git
synced 2026-04-05 17:20:33 +00:00
36 lines
698 B
Go
36 lines
698 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
q3cmd "github.com/criticalstack/quake-kube/cmd/q3/app/cmd"
|
|
q3content "github.com/criticalstack/quake-kube/cmd/q3/app/content"
|
|
q3proxy "github.com/criticalstack/quake-kube/cmd/q3/app/proxy"
|
|
q3server "github.com/criticalstack/quake-kube/cmd/q3/app/server"
|
|
)
|
|
|
|
var global struct {
|
|
Verbosity int
|
|
}
|
|
|
|
func main() {
|
|
cmd := &cobra.Command{
|
|
Use: "q3",
|
|
Short: "",
|
|
}
|
|
cmd.AddCommand(
|
|
q3cmd.NewCommand(),
|
|
q3content.NewCommand(),
|
|
q3proxy.NewCommand(),
|
|
q3server.NewCommand(),
|
|
)
|
|
|
|
cmd.PersistentFlags().CountVarP(&global.Verbosity, "verbose", "v", "log output verbosity")
|
|
|
|
if err := cmd.Execute(); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|