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

Function Echo

script.go:56–58  ·  view source on GitHub ↗

Echo creates a pipe containing the string s.

(s string)

Source from the content-addressed store, hash-verified

54
55// Echo creates a pipe containing the string s.
56func Echo(s string) *Pipe {
57 return NewPipe().WithReader(strings.NewReader(s))
58}
59
60// Exec creates a pipe that runs cmdLine as an external command and produces
61// its combined output (interleaving standard output and standard error). See

Calls 2

NewPipeFunction · 0.85
WithReaderMethod · 0.80

Used in the wild real call sites across dependent graphs

searching dependent graphs…