Gets the name of a number, even if it's stupidly big. Supersedes TheoryOfNekomata/number-name.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

23 rindas
575 B

  1. import { Cli } from './packages/cli-wrapper';
  2. import { AdderController, AdderControllerImpl } from './modules/adder';
  3. export const addCommands = (cli: Cli) => {
  4. const adderController: AdderController = new AdderControllerImpl();
  5. return cli
  6. .command({
  7. aliases: ['a'],
  8. command: 'add',
  9. parameters: ['<a> <b>'],
  10. describe: 'Add two numbers',
  11. handler: adderController.addNumbers,
  12. })
  13. .command({
  14. aliases: ['s'],
  15. command: 'subtract',
  16. parameters: ['<a> <b>'],
  17. describe: 'Subtract two numbers',
  18. handler: adderController.subtractNumbers,
  19. });
  20. };