MCPcopy Index your code
hub / github.com/go-task/task / Read

Method Read

taskfile/node_stdin.go:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func (node *StdinNode) Read() ([]byte, error) {
32 var stdin []byte
33 scanner := bufio.NewScanner(os.Stdin)
34 for scanner.Scan() {
35 stdin = fmt.Appendln(stdin, scanner.Text())
36 }
37 if err := scanner.Err(); err != nil {
38 return nil, err
39 }
40 return stdin, nil
41}
42
43func (node *StdinNode) ResolveEntrypoint(entrypoint string) (string, error) {
44 // If the file is remote, we don't need to resolve the path

Callers

nothing calls this directly

Calls 2

TextMethod · 0.80
ErrMethod · 0.80

Tested by

no test coverage detected