(argv: string[])
| 18 | import { registerValidateCommand } from './val'; |
| 19 | |
| 20 | async function main(argv: string[]): Promise<void> { |
| 21 | const program = new Command(); |
| 22 | |
| 23 | // Register all commands |
| 24 | registerCommands(program); |
| 25 | registerD2CCommand(program); |
| 26 | registerD2PCommand(program); |
| 27 | registerP2CCommand(program); |
| 28 | registerImagesCommand(program); |
| 29 | registerValidateCommand(program); |
| 30 | |
| 31 | if (argv.length <= 2) { |
| 32 | program.help({ error: false }); |
| 33 | return; |
| 34 | } |
| 35 | |
| 36 | // Parse arguments and execute actions |
| 37 | await program.parseAsync(argv); |
| 38 | } |
| 39 | |
| 40 | main(process.argv).catch(err => { |
| 41 | const error = err as Error; |
no test coverage detected