Skip to content

Releases: aricart/cobra.js

v0.1.2

14 Nov 03:06

Choose a tag to compare

v0.1.1

14 Nov 02:30
1d346d3

Choose a tag to compare

What's Changed

  • expanded and clarified README with improved documentation, code examples, ts cleanups by @aricart in #3
  • [FIX] ensure flags with nullish values like 0 are treated as explicit by @aricart in #4

Full Changelog: v0.0.9...v0.1.1

v0.1.0

15 Sep 22:14

Choose a tag to compare

improved typings and doc

v0.0.8

24 Aug 20:08

Choose a tag to compare

Changed behavior to return an empty array if extracting value for a flag as multiple values when the flag was not specified, previously it defaulted to the default value for the flag, but this is non-sensical in multiple value contexts.

v0.0.7

18 Jul 21:47

Choose a tag to compare

  • [FEAT] when --help flag is specified, the long help is printed, otherwise, the use is printed.
  • [FEAT] When a flag has a conflict on name or short, it now will print the first match of the conflict to help fix the conflict.

v0.0.6

17 Jul 21:16

Choose a tag to compare

  • [FIX] fixed formatting for long messages
  • [FIX] added util function Flags.checkRequired() which throws an error if the command has a required flag with a default value.
  • [FEAT] added Command.showHelp property. If set to true by a command during execution and the command throws an error, the error will be displayed followed by the help for the command.
  • [FIX] Error messages that were intended to be generated from a template
  • [TEST] added tests

v0.0.5

08 Apr 01:52

Choose a tag to compare

[feat] added easy access to stdout/stderr
[doc] improved documentation

v0.0.4

07 Apr 02:26

Choose a tag to compare

made flags easier to consume on the client code

v0.0.3

06 Apr 22:08
55f1afa

Choose a tag to compare

enabled root command to have a run function

v0.0.2

06 Apr 02:26

Choose a tag to compare

removed extraneous ide artifacts