(command: Command)
| 313 | } |
| 314 | |
| 315 | function resolveCommonOptions(command: Command): CommonOptions { |
| 316 | const globals = command.optsWithGlobals() as Partial<CommonOptions> & { |
| 317 | requestTimeout?: string; |
| 318 | }; |
| 319 | return { |
| 320 | profile: globals.profile ?? 'default', |
| 321 | output: globals.output ?? 'text', |
| 322 | endpointUrl: globals.endpointUrl, |
| 323 | debug: globals.debug ?? false, |
| 324 | verbose: globals.verbose ?? false, |
| 325 | dryRun: globals.dryRun ?? false, |
| 326 | requestTimeoutMs: parseRequestTimeoutFlag(globals.requestTimeout), |
| 327 | }; |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Parse the `--request-timeout <seconds>` flag value into milliseconds. |
no test coverage detected