MCPcopy Create free account
hub / github.com/driangle/taskmd / ReadAll

Method ReadAll

apps/cli/internal/cli/input.go:82–95  ·  view source on GitHub ↗

ReadAll reads all content from the resolved input source

(args []string)

Source from the content-addressed store, hash-verified

80
81// ReadAll reads all content from the resolved input source
82func (ir *InputResolver) ReadAll(args []string) ([]byte, error) {
83 reader, cleanup, err := ir.ResolveInput(args)
84 if err != nil {
85 return nil, err
86 }
87 defer cleanup() //nolint:errcheck
88
89 content, err := io.ReadAll(reader)
90 if err != nil {
91 return nil, fmt.Errorf("failed to read input: %w", err)
92 }
93
94 return content, nil
95}

Callers 5

fetchPageFunction · 0.80
fetchPageFunction · 0.80
captureStdoutFunction · 0.80

Calls 2

ResolveInputMethod · 0.95
cleanupFunction · 0.85

Tested by 3

captureStdoutFunction · 0.64