- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SubCmdRun (0.1 sec)
-
cmd/kubeadm/app/cmd/util/cmdutil.go
kubeconfigutil "k8s.io/kubernetes/cmd/kubeadm/app/util/kubeconfig" ) // SubCmdRun returns a function that handles a case where a subcommand must be specified // Without this callback, if a user runs just the command without a subcommand, // or with an invalid subcommand, cobra will print usage information, but still exit cleanly. func SubCmdRun() func(c *cobra.Command, args []string) { return func(c *cobra.Command, args []string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/upgrade.go
printConfig: false, out: out, } cmd := &cobra.Command{ Use: "upgrade", Short: "Upgrade your cluster smoothly to a newer version with this command", Run: cmdutil.SubCmdRun(), } cmd.AddCommand(newCmdApply(flags)) cmd.AddCommand(newCmdPlan(flags)) cmd.AddCommand(newCmdDiff(out)) cmd.AddCommand(newCmdNode(out)) return cmd }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 26 01:18:29 UTC 2022 - 2.9K bytes - Viewed (0)