mirror of
https://github.com/rancher/k3k.git
synced 2026-03-04 18:54:14 +00:00
* Add kubeconfig subcommand Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Add kubeconfig subcommand Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Add kubeconfig subcommand Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Add kubeconfig subcommand Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> --------- Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
31 lines
518 B
Go
31 lines
518 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/rancher/k3k/cli/cmds"
|
|
"github.com/rancher/k3k/cli/cmds/cluster"
|
|
"github.com/rancher/k3k/cli/cmds/kubeconfig"
|
|
"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.NewCommand(),
|
|
kubeconfig.NewCommand(),
|
|
}
|
|
app.Version = version + " (" + gitCommit + ")"
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
logrus.Fatal(err)
|
|
}
|
|
}
|