MCPcopy
hub / github.com/go-task/task / WithOffline

Function WithOffline

taskfile/reader.go:117–119  ·  view source on GitHub ↗

WithOffline stops the [Reader] 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

115// WithOffline stops the [Reader] from being able to make network connections.
116// It will still be able to read local files and cached copies of remote files.
117func WithOffline(offline bool) ReaderOption {
118 return &offlineOption{offline: offline}
119}
120
121type offlineOption struct {
122 offline bool

Callers 1

readTaskfileMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…