Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 803 Bytes

REFACTOR_NOTE.md

File metadata and controls

15 lines (13 loc) · 803 Bytes

Changes:

  • Removed SubCommand, inheritance is now:
    • BaseCommand (abstract)
    • Command extends BaseCommand
    • CommandGroup extends BaseCommand (CommandGroup now holds Command instead of SubCommand)

Internal:

  • Renamed TooManyArguments Exception to TooManyArgumentsError for name consistency
  • Renamed SubCommandNotFound Exception to SubCommandNotFoundError for name consistency
  • Command#registerCommand now takes a string as parameter instead of the created Command class and will instanciate the class by itself
  • Command#registerCommandGroup now takes a string as parameter instead of the created CommandGroup class and will instanciate the class by itself
  • internal function Command#run is now named Command#dispatch

Features:

  • checkPermission now allows a Promise response