-
-
Notifications
You must be signed in to change notification settings - Fork 26
Upgrade from v4 to v5
Rmannn edited this page May 20, 2021
·
1 revision
Signature of @Console decorator has been updated. ConsoleOptions has been replaced by CreateCommandOptions, you simply have to change property name by command.
@Console({name: "myCommand"})To
@Console({command: "myCommand"})`Command handler signature has changed. Options are now passed to the handler. See the command handler signature for more details.
handler(arg: any, command: commander.Command){}To
handler(arg: any, options: any, command: commander.Command){}Commander@< 7.2.0 is not any more supported. Please upgrade to latest version
npm install commander@^7.2.0 --saveor using yarn
yarn add commander@^7.2.0The helper formatResponse has been removed