MCPcopy Create free account
hub / github.com/go-task/task / openHandler

Function openHandler

internal/execext/exec.go:152–157  ·  view source on GitHub ↗
(ctx context.Context, path string, flag int, perm os.FileMode)

Source from the content-addressed store, hash-verified

150}
151
152func openHandler(ctx context.Context, path string, flag int, perm os.FileMode) (io.ReadWriteCloser, error) {
153 if path == "/dev/null" {
154 return devNull{}, nil
155 }
156 return interp.DefaultOpenHandler()(ctx, path, flag, perm)
157}
158
159func dirOption(path string) interp.RunnerOption {
160 return func(r *interp.Runner) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…