MCPcopy
hub / github.com/larksuite/cli / effectiveJSONOnly

Function effectiveJSONOnly

internal/binding/secret_resolve_exec.go:153–158  ·  view source on GitHub ↗

effectiveJSONOnly returns pc.JSONOnly or its documented default (true).

(pc *ProviderConfig)

Source from the content-addressed store, hash-verified

151
152// effectiveJSONOnly returns pc.JSONOnly or its documented default (true).
153func effectiveJSONOnly(pc *ProviderConfig) bool {
154 if pc.JSONOnly != nil {
155 return *pc.JSONOnly
156 }
157 return true
158}
159
160// runExecCommand spawns the child per prep, feeds prep.Request on stdin, and
161// returns trimmed stdout on success. Failure modes:

Callers 1

resolveExecRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected