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

Function ExampleExec_exit_status_zero

script_test.go:2204–2210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2202}
2203
2204func ExampleExec_exit_status_zero() {
2205 p := script.Exec("echo")
2206 p.Wait()
2207 fmt.Println(p.ExitStatus())
2208 // Output:
2209 // 0
2210}
2211
2212func ExampleExec_exit_status_not_zero() {
2213 p := script.Exec("false")

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…