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

Function WithTrustedHosts

taskfile/reader.go:131–133  ·  view source on GitHub ↗

WithTrustedHosts configures the [Reader] with a list of trusted hosts for remote Taskfiles. Hosts in this list will not prompt for user confirmation.

(trustedHosts []string)

Source from the content-addressed store, hash-verified

129// WithTrustedHosts configures the [Reader] with a list of trusted hosts for remote
130// Taskfiles. Hosts in this list will not prompt for user confirmation.
131func WithTrustedHosts(trustedHosts []string) ReaderOption {
132 return &trustedHostsOption{trustedHosts: trustedHosts}
133}
134
135type trustedHostsOption struct {
136 trustedHosts []string

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…