Skip to content

0.1.0

Compare
Choose a tag to compare
@talentlessguy talentlessguy released this 05 Jul 12:34
· 10 commits to master since this release

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