()
| 35 | } |
| 36 | |
| 37 | func ExampleSupervisor_RunAndGetOutput() { |
| 38 | ctx := context.Background() |
| 39 | cmd := New(ctx, "echo", "-n", "foo") |
| 40 | stdout, stderr, err := cmd.RunAndGetOutput() |
| 41 | |
| 42 | fmt.Println(string(stdout)) |
| 43 | fmt.Println(string(stderr)) |
| 44 | fmt.Println(err) |
| 45 | // Output: |
| 46 | // foo |
| 47 | // |
| 48 | // <nil> |
| 49 | } |
| 50 | |
| 51 | func ExampleBuilder_WithEnv() { |
| 52 | ctx := context.Background() |
nothing calls this directly
no test coverage detected