0.1.0
What's changed
- Middleware API. Now you can run a chain of functions before a command handler executes.
cli.middleware('*', (...args) => console.log('[DEBUG]', ...args))
cli.middleware('hello', (...args) => console.log('only runs before hello'))
cli.command('hello', () => console.log('Hello!'))
- Plugins are now extended by programs (subcommands)
Misc
- Fix a bug with default command
- Increase code coverage to 90%
- Update readme example
Full Changelog: 0.0.5...0.1.0