- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for quoteArgs (0.12 sec)
-
src/cmd/go/internal/script/errors.go
} } func (e *CommandError) Error() string { if len(e.Args) == 0 { return fmt.Sprintf("%s:%d: %s: %v", e.File, e.Line, e.Op, e.Err) } return fmt.Sprintf("%s:%d: %s %s: %v", e.File, e.Line, e.Op, quoteArgs(e.Args), e.Err) } func (e *CommandError) Unwrap() error { return e.Err } // A UsageError reports the valid arguments for a command. // // It may be returned in response to invalid arguments.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:18:10 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/go/internal/script/engine.go
b.WriteString(s.ExpandEnv(frag.s, isRegexp)) } } args = append(args, b.String()) } return args } // quoteArgs returns a string that parse would parse as args when passed to a command. // // TODO(bcmills): This function should have a fuzz test. func quoteArgs(args []string) string { var b strings.Builder for i, arg := range args { if i > 0 { b.WriteString(" ") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 01:16:19 UTC 2023 - 22.2K bytes - Viewed (0) -
src/cmd/go/internal/script/cmds.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 28.5K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/HelloWorldApp.java
} public String compilerDefine(String define, String value) { return compilerConfig("define", define, value); } private String compilerConfig(String action, String... args) { String quotedArgs = CollectionUtils.join(",", CollectionUtils.collect(args, new SingleQuotingTransformer())); StringBuilder builder = new StringBuilder(); for (String plugin : getPluginList()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java
// Pass build JVM args through to daemon via system property on the launcher JVM String quotedArgs = join(" ", collect(gradleInvocation.buildJvmArgs, input -> String.format("'%s'", input))); gradleInvocation.implicitLauncherJvmArgs.add("-Dorg.gradle.jvmargs=" + quotedArgs); } else { // Have to pass build JVM args directly to launcher JVM
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 55.1K bytes - Viewed (0)