(value: string)
| 574 | } |
| 575 | |
| 576 | function parsePositiveInteger(value: string) { |
| 577 | const parsed = Number(value) |
| 578 | if (!Number.isInteger(parsed) || parsed < 1) { |
| 579 | throw new InvalidArgumentError('Value must be a positive integer') |
| 580 | } |
| 581 | return parsed |
| 582 | } |
| 583 | |
| 584 | async function runWithTelemetry<T>( |
| 585 | command: string, |
nothing calls this directly
no outgoing calls
no test coverage detected