(raw: string)
| 16 | const corePkg = corePackage; |
| 17 | |
| 18 | function parseDepth(raw: string): number | typeof Infinity { |
| 19 | if (raw === "unbound") { |
| 20 | return Infinity; |
| 21 | } |
| 22 | |
| 23 | const value = Number.parseInt(raw, 10); |
| 24 | if (!Number.isInteger(value) || value < 0) { |
| 25 | throw new InvalidArgumentError( |
| 26 | "Depth must be a non-negative integer or 'unbound'" |
| 27 | ); |
| 28 | } |
| 29 | return value; |
| 30 | } |
| 31 | |
| 32 | export async function runCli(argv: string[]): Promise<void> { |
| 33 | const program = new Command(); |
nothing calls this directly
no outgoing calls
no test coverage detected