MCPcopy Index your code
hub / github.com/jetify-com/devbox / StringSlice

Method StringSlice

nix/command.go:305–311  ·  view source on GitHub ↗

StringSlice formats each argument using [fmt.Sprint].

()

Source from the content-addressed store, hash-verified

303
304// StringSlice formats each argument using [fmt.Sprint].
305func (a Args) StringSlice() []string {
306 s := make([]string, len(a))
307 for i := range a {
308 s[i] = fmt.Sprint(a[i])
309 }
310 return s
311}
312
313// String returns the arguments as a shell command, quoting arguments with
314// spaces.

Callers 1

initExecCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected