(raw: string | undefined)
| 226 | } |
| 227 | |
| 228 | function parseRequestTimeoutFlag(raw: string | undefined): number | undefined { |
| 229 | if (raw === undefined) return undefined; |
| 230 | const n = Number(raw); |
| 231 | if (!Number.isFinite(n) || n <= 0) return undefined; |
| 232 | return Math.round(n * 1000); |
| 233 | } |
| 234 | |
| 235 | function makeOutput(mode: OutputMode, deps: UsageDeps): Output { |
| 236 | return new Output(mode, { stdout: deps.stdout, stderr: deps.stderr }); |
no outgoing calls
no test coverage detected