MCPcopy Index your code
hub / github.com/cli/cli / Stdio

Method Stdio

pkg/surveyext/editor_test.go:242–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240}
241
242func (t *testTerminal) Stdio() terminal.Stdio {
243 t.stdout = &teeWriter{File: t.tty}
244 t.stderr = t.stdout
245 return terminal.Stdio{
246 In: t.tty,
247 Out: t.stdout,
248 Err: t.stderr,
249 }
250}
251
252// teeWriter is a writer that duplicates all writes to a file into a buffer
253type teeWriter struct {

Callers 4

promptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected