Skip to content

Releases: drew-y/cliffy

Cliffy Version 2!

09 Nov 23:42
54a1ed8
Compare
Choose a tag to compare

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.