mirror of
https://github.com/rancher/k3k.git
synced 2026-03-02 17:50:36 +00:00
29 lines
452 B
Go
29 lines
452 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/rancher/k3k/cli/cmds"
|
|
"github.com/rancher/k3k/cli/cmds/cluster"
|
|
"github.com/sirupsen/logrus"
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
const (
|
|
program = "k3k"
|
|
version = "dev"
|
|
gitCommit = "HEAD"
|
|
)
|
|
|
|
func main() {
|
|
app := cmds.NewApp()
|
|
app.Commands = []cli.Command{
|
|
cluster.NewClusterCommand(),
|
|
}
|
|
app.Version = version + " (" + gitCommit + ")"
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
logrus.Fatal(err)
|
|
}
|
|
}
|