Skip to content

Cliffy Version 2!

Latest
Compare
Choose a tag to compare
@drew-y drew-y released this 09 Nov 23:42
· 79 commits to master since this release
54a1ed8

2.0.0 - 9 November 2018

Added

  • Support for optional parameters
  • Support for rest parameters

Changed

  • 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.

Removed

  • Action functions are no longer passed done. Return a promise instead.

Deprecated

  • command - use addCommand instead.
  • commands - use addCommands instead.
  • registerCommands - use addCommands instead.