import { Cli } from './packages/cli-wrapper'; import { AdderController, AdderControllerImpl } from './modules/adder'; export const addCommands = (cli: Cli) => { const adderController: AdderController = new AdderControllerImpl(); return cli .command({ aliases: ['a'], command: 'add', parameters: [' '], describe: 'Add two numbers', handler: adderController.addNumbers, }) .command({ aliases: ['s'], command: 'subtract', parameters: [' '], describe: 'Subtract two numbers', handler: adderController.subtractNumbers, }); };