Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 621 Bytes
package main
import (
"github.com/alexellis/k3sup/pkg/cmd"
"github.com/spf13/cobra"
)
func main() {
cmdInstall := cmd.MakeInstall()
cmdVersion := cmd.MakeVersion()
cmdJoin := cmd.MakeJoin()
cmdApps := cmd.MakeApps()
cmdUpdate := cmd.MakeUpdate()
printk3supASCIIArt := cmd.PrintK3supASCIIArt
var rootCmd = &cobra.Command{
Use: "k3sup",
Run: func(cmd *cobra.Command, args []string) {
printk3supASCIIArt()
cmd.Help()
},
}
rootCmd.AddCommand(cmdInstall)
rootCmd.AddCommand(cmdVersion)
rootCmd.AddCommand(cmdJoin)
rootCmd.AddCommand(cmdApps)
rootCmd.AddCommand(cmdUpdate)
rootCmd.Execute()
}
You can’t perform that action at this time.