Skip to content

Releases: drizzle-team/brocli

Global options

05 Nov 13:08
99ecf49
Compare
Choose a tag to compare
  • Added global options that could be handled in hook of run

0.10.1

13 Aug 19:17
a2faec8
Compare
Choose a tag to compare
  • Fixed default global help using outdated command description handler

0.10.0

08 Aug 09:52
3f3b6a9
Compare
Choose a tag to compare
  • Massively improved default command help and global help
  • Fixed events sometimes not receiving cliName (now name) param even if specified in run()'s config
  • Reworked events: changed event naming (seemingly random -> snake_case), grouped all error events under error-type event
  • Added description to run()'s config - field to print to in global help by default, passed to events along with cliName (now name)
  • Renamed cliName to name in run()'s config (role of it stays the same)

0.9.2

26 Jul 04:34
6409acc
Compare
Choose a tag to compare
  • Added command list to unknownCommandEvent theme event

0.9.1

25 Jul 04:07
4c97ab8
Compare
Choose a tag to compare
  • Fixed default positional enum error message

0.9.0

24 Jul 03:12
a94f80a
Compare
Choose a tag to compare
  • Added short descriptions to commands
  • Added cli name for usage in themes
  • Added event-based themes
  • Added ability to not add handlers to command with subcommands (command help is called for command in such case)
  • Changed commands' metaInfo to metadata, removed type restriction
  • Fixed test function incorrectly parsing some argument strings
  • Fixed .max() incorrectly comparing value with value provided by .min
  • Fixed number options getting parsed into strings
  • Fixed inconsistencies in default error messages
  • Fixed positional enums
  • Fixed enums excluding undefined from type even when they're optional
  • Expanded tests
  • Updated docs

0.8.2

10 Jul 11:15
8031823
Compare
Choose a tag to compare
  • Completely prevented command() function from mutating input object
  • Optimized command validation

0.8.1

09 Jul 15:03
c9ffbe1
Compare
Choose a tag to compare
  • Improved command/subcommand cloning
  • Removed unnecessary logic

0.8.0

09 Jul 14:24
7e7dc50
Compare
Choose a tag to compare
  • Fixed clone-related crashes with subcommands
  • Now command assign parent to subcommands on creation
  • Added function to convert command collection into data about commands
  • Renamed runCli() to run()

0.7.0

09 Jul 11:29
3449512
Compare
Choose a tag to compare
  • Fixed logs in test function
  • Added global hooks to trigger before\after transform & handler