effectiveJSONOnly returns pc.JSONOnly or its documented default (true).
(pc *ProviderConfig)
| 151 | |
| 152 | // effectiveJSONOnly returns pc.JSONOnly or its documented default (true). |
| 153 | func 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: |