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

Function WithOffline

executor.go:243–245  ·  view source on GitHub ↗

WithOffline stops the [Executor] from being able to make network connections. It will still be able to read local files and cached copies of remote files.

(offline bool)

Source from the content-addressed store, hash-verified

241// WithOffline stops the [Executor] from being able to make network connections.
242// It will still be able to read local files and cached copies of remote files.
243func WithOffline(offline bool) ExecutorOption {
244 return &offlineOption{offline}
245}
246
247type offlineOption struct {
248 offline bool

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…