1
0
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:
galal-hussein
2017-10-29 11:45:21 +02:00
parent 84d02e8b42
commit f7649289d4
15 changed files with 987 additions and 7 deletions

23
main.go
View File

@@ -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)
}