|
|
@ -86,25 +86,23 @@ All Nodes of a k3d cluster are part of the same docker network.`, |
|
|
|
rootCmd.Flags().BoolVar(&flags.version, "version", false, "Show k3d and default k3s version") |
|
|
|
rootCmd.Flags().BoolVar(&flags.version, "version", false, "Show k3d and default k3s version") |
|
|
|
|
|
|
|
|
|
|
|
// add subcommands
|
|
|
|
// add subcommands
|
|
|
|
rootCmd.AddCommand(NewCmdCompletion(rootCmd)) |
|
|
|
rootCmd.AddCommand(NewCmdCompletion(rootCmd), |
|
|
|
rootCmd.AddCommand(cluster.NewCmdCluster()) |
|
|
|
cluster.NewCmdCluster(), |
|
|
|
rootCmd.AddCommand(kubeconfig.NewCmdKubeconfig()) |
|
|
|
kubeconfig.NewCmdKubeconfig(), |
|
|
|
rootCmd.AddCommand(node.NewCmdNode()) |
|
|
|
node.NewCmdNode(), |
|
|
|
rootCmd.AddCommand(image.NewCmdImage()) |
|
|
|
image.NewCmdImage(), |
|
|
|
rootCmd.AddCommand(cfg.NewCmdConfig()) |
|
|
|
cfg.NewCmdConfig(), |
|
|
|
rootCmd.AddCommand(registry.NewCmdRegistry()) |
|
|
|
registry.NewCmdRegistry(), |
|
|
|
rootCmd.AddCommand(debug.NewCmdDebug()) |
|
|
|
debug.NewCmdDebug(), |
|
|
|
|
|
|
|
&cobra.Command{ |
|
|
|
rootCmd.AddCommand(&cobra.Command{ |
|
|
|
|
|
|
|
Use: "version", |
|
|
|
Use: "version", |
|
|
|
Short: "Show k3d and default k3s version", |
|
|
|
Short: "Show k3d and default k3s version", |
|
|
|
Long: "Show k3d and default k3s version", |
|
|
|
Long: "Show k3d and default k3s version", |
|
|
|
Run: func(cmd *cobra.Command, args []string) { |
|
|
|
Run: func(cmd *cobra.Command, args []string) { |
|
|
|
printVersion() |
|
|
|
printVersion() |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
&cobra.Command{ |
|
|
|
rootCmd.AddCommand(&cobra.Command{ |
|
|
|
|
|
|
|
Use: "runtime-info", |
|
|
|
Use: "runtime-info", |
|
|
|
Short: "Show runtime information", |
|
|
|
Short: "Show runtime information", |
|
|
|
Long: "Show some information about the runtime environment (e.g. docker info)", |
|
|
|
Long: "Show some information about the runtime environment (e.g. docker info)", |
|
|
|