blob: 7a71b907c4d9781ccab8b3766323f17b0e43a79b [file] [log] [blame]
package main
import (
"log"
"github.com/spf13/cobra"
)
var rootCmd *cobra.Command
var rootFlags struct {
kubeConfig string
}
func init() {
rootCmd = &cobra.Command{
Use: "pcloud",
}
rootCmd.PersistentFlags().StringVar(
&rootFlags.kubeConfig,
"kubeconfig",
"",
"",
)
rootCmd.AddCommand(bootstrapCmd())
rootCmd.AddCommand(createEnvCmd())
rootCmd.AddCommand(installCmd())
rootCmd.AddCommand(appManagerCmd())
}
func main() {
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)
}
}