MCPcopy Index your code
hub / github.com/go-task/task / Options

Method Options

taskfile/reader.go:81–85  ·  view source on GitHub ↗

Options loops through the given [ReaderOption] functions and applies them to the [Reader].

(opts ...ReaderOption)

Source from the content-addressed store, hash-verified

79// Options loops through the given [ReaderOption] functions and applies them to
80// the [Reader].
81func (r *Reader) Options(opts ...ReaderOption) {
82 for _, opt := range opts {
83 opt.ApplyToReader(r)
84 }
85}
86
87// WithInsecure allows the [Reader] to make insecure connections when reading
88// remote taskfiles. By default, insecure connections are rejected.

Callers 1

NewReaderFunction · 0.95

Calls 1

ApplyToReaderMethod · 0.65

Tested by

no test coverage detected