MCPcopy Index your code
hub / github.com/bitfield/script / ExamplePipe_ExitStatus

Function ExamplePipe_ExitStatus

script_test.go:2344–2349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2342}
2343
2344func ExamplePipe_ExitStatus() {
2345 p := script.Exec("echo")
2346 fmt.Println(p.ExitStatus())
2347 // Output:
2348 // 0
2349}
2350
2351func ExamplePipe_First() {
2352 script.Echo("a\nb\nc\n").First(2).Stdout()

Callers

nothing calls this directly

Calls 2

ExecFunction · 0.92
ExitStatusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…