mirror of
https://github.com/rancher/rke.git
synced 2025-09-12 13:18:47 +00:00
Set up kubernetes components
This commit is contained in:
23
main.go
23
main.go
@@ -4,20 +4,33 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/rancher/rke/cmd"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var VERSION = "v0.0.0-dev"
|
||||
var VERSION = "v0.1.0-dev"
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "rke"
|
||||
app.Version = VERSION
|
||||
app.Usage = "You need help!"
|
||||
app.Action = func(c *cli.Context) error {
|
||||
logrus.Info("I'm a turkey")
|
||||
app.Usage = "Rancher Kubernetes Engine, Running kubernetes cluster in the cloud"
|
||||
app.Before = func(ctx *cli.Context) error {
|
||||
if ctx.GlobalBool("debug") {
|
||||
logrus.SetLevel(logrus.DebugLevel)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
app.Author = "Rancher Labs, Inc."
|
||||
app.Email = ""
|
||||
app.Commands = []cli.Command{
|
||||
cmd.ClusterCommand(),
|
||||
}
|
||||
app.Flags = []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "debug,d",
|
||||
Usage: "Debug logging",
|
||||
},
|
||||
}
|
||||
app.Run(os.Args)
|
||||
}
|
||||
|
Reference in New Issue
Block a user