(opts: ChildProcess.CommandOptions, key: "stdout" | "stderr")
| 128 | } |
| 129 | |
| 130 | const stdio = (opts: ChildProcess.CommandOptions, key: "stdout" | "stderr"): ChildProcess.StdoutConfig => { |
| 131 | const cfg = opts[key] |
| 132 | if (Predicate.isUndefined(cfg)) return { stream: "pipe" } |
| 133 | if (typeof cfg === "string") return { stream: cfg } |
| 134 | if (Sink.isSink(cfg)) return { stream: cfg } |
| 135 | return { stream: cfg.stream } |
| 136 | } |
| 137 | |
| 138 | const fds = (opts: ChildProcess.CommandOptions) => { |
| 139 | if (Predicate.isUndefined(opts.additionalFds)) return [] |
no outgoing calls
no test coverage detected