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 toTooManyArgumentsError
for name consistency - Renamed
SubCommandNotFound
Exception toSubCommandNotFoundError
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 namedCommand#dispatch
Features:
- checkPermission now allows a Promise response