All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fix an issue where
quietBlank: true
could prevent the invalid command message from showing. (@wolfy01)
- New
quietBlank
option that prevents the help menu from appearing when an blank new line is entered. (@mbwhite)
- A bug that allowed users to pass more parameters than were allowed by a command.
- Parameters can now be enclosed by single (') and double (") quotes.
- Parameters can now be enclosed with double (") quotes.
- Support for command aliasing.
- Support for optional parameters.
- Support for rest parameters.
- The options are specified with
{ label: string }
instead of{ option: string }
. - Most CLI methods return a reference to this, allowing method chaining.
- command and commands methods have been renamed to addCommand and addCommands respectively.
- If an action does not return a promise, it is assumed to be synchronous.
done
is no longer required.
- Action functions are no longer passed
done
. Return a promise instead.
command
- useaddCommand
instead.commands
- useaddCommands
instead.registerCommands
- useaddCommands
instead.
- Shorthand "Action" as an overload.
- Shorthand command registration.
- Unit tests.
- Passed values of "false" or "0" are considered false by boolean parameters.
- Parameters can specify a conversion method as a type.
commands
An alias for registerCommands.
registerCommands
for bulk registration of commands.
setInfo
Set the help menu overview.setName
Set the name of the interface for the help menu.setVersion
Set a version to be displayed by help.
- Importable Commands interface.
- Type definitions come from a generated .d.ts file.
- Licesnse text.
- Hide works immediatley.
- Extracted some parsers to their own file.
- We now show help for a command if it is used incorrectly.
- Log rejected promises in returned by actions.
- Build instructions to README.md.
- Build command to package.json.
- CHANGELOG.md.