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

Function ExamplePipe_WithStderr

script_test.go:2625–2631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2623}
2624
2625func ExamplePipe_WithStderr() {
2626 buf := new(bytes.Buffer)
2627 script.NewPipe().WithStderr(buf).Exec("go").Wait()
2628 fmt.Println(strings.Contains(buf.String(), "Usage"))
2629 // Output:
2630 // true
2631}
2632
2633func ExampleSlice() {
2634 input := []string{"1", "2", "3"}

Callers

nothing calls this directly

Calls 5

NewPipeFunction · 0.92
WaitMethod · 0.80
ExecMethod · 0.80
WithStderrMethod · 0.80
StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…