MCPcopy Create free account
hub / github.com/Azure/static-web-apps-cli / parseServerTimeout

Function parseServerTimeout

src/core/utils/cli.ts:112–121  ·  view source on GitHub ↗
(time: string)

Source from the content-addressed store, hash-verified

110 * @returns parses the string and returns an integer
111 */
112export function parseServerTimeout(time: string) {
113 // The argument 10 implies to convert the given string to base-10(decimal)
114 const timeValue = parseInt(time, 10);
115 if (isNaN(timeValue)) {
116 logger.error(`--devserver-timeout should be a number expressed in seconds. Got "${time}".`, true);
117 } else if (timeValue < 0) {
118 logger.error(`--devserver-timeout should be a positive number`);
119 }
120 return timeValue;
121}

Callers 1

cli.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…