MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / parseRequestTimeoutFlag

Function parseRequestTimeoutFlag

src/commands/usage.ts:228–233  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

226}
227
228function 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
235function makeOutput(mode: OutputMode, deps: UsageDeps): Output {
236 return new Output(mode, { stdout: deps.stdout, stderr: deps.stderr });

Callers 1

resolveCommonOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected