(program: Command)
| 3 | |
| 4 | /* Register all commands to the program */ |
| 5 | export function registerCommands(program: Command): void { |
| 6 | const version = typeof __VERSION__ === 'undefined' ? '0.0.1' : __VERSION__; |
| 7 | program |
| 8 | .name(CLI_NAME) |
| 9 | .description(`${CLI_NAME} - Convert Figma designs to code`) |
| 10 | .version(version, '-v, -V, --version', 'Output the version number') |
| 11 | .showHelpAfterError(); |
| 12 | } |