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

Function ExamplePipe_Exec

script_unix_test.go:212–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211
212func ExamplePipe_Exec() {
213 script.Echo("Hello, world!").Exec("tr a-z A-Z").Stdout()
214 // Output:
215 // HELLO, WORLD!
216}
217
218func ExamplePipe_ExecForEach() {
219 script.Echo("a\nb\nc\n").ExecForEach("echo {{.}}").Stdout()

Callers

nothing calls this directly

Calls 3

EchoFunction · 0.92
StdoutMethod · 0.80
ExecMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…