MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / stdinLineReader

Function stdinLineReader

internal/plugins/plugin.go:383–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381)
382
383func stdinLineReader() *bufio.Reader {
384 if stdinReader == nil || stdinSource != os.Stdin {
385 stdinReader = bufio.NewReader(os.Stdin)
386 stdinSource = os.Stdin
387 }
388 return stdinReader
389}
390
391// readLine reads a single line from stdin and accepts either \n or \r as the
392// line ending. Terminals such as kitty on macOS send a bare \r when Enter is

Callers 1

readLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected