- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RunSubCommand (0.12 sec)
-
cmd/kubeadm/test/cmd/util.go
command, args, retcode, stdout, stderr) } return stdout, stderr, retcode, nil } // RunSubCommand is a utility function for kubeadm testing that executes a Cobra sub command func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, output io.Writer, args ...string) error { subCmd := getSubCommand(t, subCmds, command) subCmd.SetOut(output)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 01 12:47:03 UTC 2024 - 2.5K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/certs_test.go
// exec renew renewCmds := getRenewSubCommands(os.Stdout, tmpDir) args := fmt.Sprintf("--cert-dir=%s", tmpDir) if len(test.Args) > 0 { args = test.Args + " " + args } err := cmdtestutil.RunSubCommand(t, renewCmds, test.command, io.Discard, args) // certs renew doesn't support positional Args if (err != nil) != test.expectedError {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 13:26:12 UTC 2024 - 20.1K bytes - Viewed (0)