- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 47 for sysargs (0.16 sec)
-
istioctl/cmd/root_test.go
} _ = parent.PersistentFlags().String(childFlag2, "", childFlag2) parent.AddCommand(child) // verify both parent flags and the child flag are visible by default parent.SetArgs([]string{"child", "--help"}) if err := parent.Execute(); err != nil { t.Fatal(err) } got := out.String() out.Reset() checkHelpForFlag(t, got, parentFlag0, true) checkHelpForFlag(t, got, parentFlag1, true)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 15 17:59:55 UTC 2021 - 2.4K bytes - Viewed (0) -
istioctl/pkg/util/testutil/util.go
GoldenFilename string // Expected output stored in golden file WantException bool } func VerifyOutput(t *testing.T, cmd *cobra.Command, c TestCase) { t.Helper() cmd.SetArgs(c.Args) var out bytes.Buffer cmd.SetOut(&out) cmd.SetErr(&out) cmd.SilenceUsage = true fErr := cmd.Execute() output := out.String() if c.ExpectedOutput != "" && c.ExpectedOutput != output {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 2K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/ServeDocs.java
builder.getMainModule().set("jdk.httpserver"); builder.setStandardOutput(System.out); builder.setErrorOutput(System.err); builder.setArgs(Arrays.asList("-p", getPort().get(), "-d", getDocsDirectory().get().getAsFile().getAbsolutePath())); registry.start(getPath(), DeploymentRegistry.ChangeBehavior.RESTART, JavaApplicationHandle.class, builder); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 12:38:47 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/kubeadm/test/cmd/util.go
func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, output io.Writer, args ...string) error { subCmd := getSubCommand(t, subCmds, command) subCmd.SetOut(output) subCmd.SetArgs(args) if err := subCmd.Execute(); err != nil { return err } return nil } func getSubCommand(t *testing.T, subCmds []*cobra.Command, name string) *cobra.Command { for _, subCmd := range subCmds {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 01 12:47:03 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/jvm/plugins-application/src/main/java/org/gradle/internal/deployment/RunApplication.java
builder.setExecutable(Jvm.current().getJavaExecutable()); builder.setClasspath(classpath); builder.getMainClass().set(mainClassName); builder.setArgs(arguments); registry.start(getPath(), changeBehavior, JavaApplicationHandle.class, builder); } } @Inject protected DeploymentRegistry getDeploymentRegistry() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 28 23:38:57 UTC 2024 - 3.2K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig_test.go
Namespace: "default", })), c) }) } } func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) { t.Helper() var out bytes.Buffer cmd.SetArgs(c.args) cmd.SilenceUsage = true cmd.SetOut(&out) cmd.SetErr(&out) fErr := cmd.Execute() output := out.String() if c.expectedOutput != "" && c.expectedOutput != output {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 10 21:51:29 UTC 2024 - 8.9K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint_test.go
t.Fatal(err) } expectedOut := string(defaultFile) if len(expectedOut) == 0 { t.Fatal("expected output is empty") } var out bytes.Buffer rootCmd := Cmd(ctx) rootCmd.SetArgs(tt.args) rootCmd.SetOut(&out) rootCmd.SetErr(&out) fErr := rootCmd.Execute() if fErr != nil { t.Fatal(fErr) } output := out.String() if output != expectedOut {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 04 15:53:09 UTC 2024 - 4.4K bytes - Viewed (0) -
platforms/software/security/src/main/java/org/gradle/security/internal/gnupg/GnupgSignatory.java
LOG.info("Invoking {} with arguments: {}", executable, arguments); execOperations.exec(spec -> { spec.setExecutable(executable); spec.setArgs(arguments); spec.setStandardInput(prepareStdin(input)); spec.setStandardOutput(output); } ); } private InputStream prepareStdin(InputStream input) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 4K bytes - Viewed (0) -
operator/cmd/mesh/root.go
Short: "Command line Istio install utility.", SilenceUsage: true, Long: "This command uses the Istio operator code to generate templates, query configurations and perform " + "utility operations.", } rootCmd.SetArgs(args) rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine) rootCmd.AddCommand(ManifestCmd(ctx)) rootCmd.AddCommand(InstallCmd(ctx)) rootCmd.AddCommand(ProfileCmd(ctx)) rootCmd.AddCommand(OperatorCmd(ctx))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 3.9K bytes - Viewed (0) -
test-site/activator
-J*) addJava "${1:2}" && shift ;; *) addResidual "$1" && shift ;; esac done is_function_defined process_my_args && { myargs=("${residual_args[@]}") residual_args=() process_my_args "${myargs[@]}" } } # Actually runs the script. run() { # TODO - check for sane environment # process the combined args, then reset "$@" to the residuals
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Mon Apr 20 08:41:37 UTC 2015 - 9.3K bytes - Viewed (0)