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

Function WithTrustedHosts

executor.go:257–259  ·  view source on GitHub ↗

WithTrustedHosts configures the [Executor] 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

255// WithTrustedHosts configures the [Executor] with a list of trusted hosts for remote
256// Taskfiles. Hosts in this list will not prompt for user confirmation.
257func WithTrustedHosts(trustedHosts []string) ExecutorOption {
258 return &trustedHostsOption{trustedHosts}
259}
260
261type trustedHostsOption struct {
262 trustedHosts []string

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…