MCPcopy Index your code
hub / github.com/dagger/dagger / SetProcessFunc

Method SetProcessFunc

cmd/dagger/shell.go:713–715  ·  view source on GitHub ↗

Shell state is piped between exec handlers and only in the end the runner writes the final output to the stdoutWriter. We need to check if that state needs to be resolved into an API request and handle the response appropriately. Note that this can happen in parallel if commands are separated with a

(fn func([]byte) ([]byte, error))

Source from the content-addressed store, hash-verified

711// appropriately. Note that this can happen in parallel if commands are
712// separated with a '&'.
713func (o *terminalWriter) SetProcessFunc(fn func([]byte) ([]byte, error)) {
714 o.processFn = fn
715}

Callers 2

runMethod · 0.80
HandleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected