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

Function ExampleExec_exit_status_not_zero

script_test.go:2212–2218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2210}
2211
2212func ExampleExec_exit_status_not_zero() {
2213 p := script.Exec("false")
2214 p.Wait()
2215 fmt.Println(p.ExitStatus())
2216 // Output:
2217 // 1
2218}
2219
2220func ExampleFile() {
2221 script.File("testdata/hello.txt").Stdout()

Callers

nothing calls this directly

Calls 3

ExecFunction · 0.92
WaitMethod · 0.80
ExitStatusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…