MCPcopy
hub / github.com/bitfield/script / ExamplePipe_ExecForEach

Function ExamplePipe_ExecForEach

script_unix_test.go:218–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218func ExamplePipe_ExecForEach() {
219 script.Echo("a\nb\nc\n").ExecForEach("echo {{.}}").Stdout()
220 // Output:
221 // a
222 // b
223 // c
224}

Callers

nothing calls this directly

Calls 3

EchoFunction · 0.92
StdoutMethod · 0.80
ExecForEachMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…