Skip to content

Releases: devnote-dev/cling

v3.1.0

04 Aug 17:38

Choose a tag to compare

Features

  • Added nilable cast methods for Value
  • Added type conversion methods for Value
  • Implemented hidden arguments and options (for documentation)
  • Added exit_program helper method
  • Added <command> placeholder to usage (#17) (thanks @BigBoyBarney)

Changes

  • Deprecated Parser::Result#key! and #value!
  • Bumped minimum supported Crystal compiler version to 1.8.0
  • Deprecated Command#pre_run(arguments : Arguments, options : Options) : Bool? overload
  • Command#execute now returns program exit code
  • Added more specific messages to command/execution errors

Fixes

  • Invalid arguments and options now raise with CommandError instead of ExecutionError
  • Fix --help summary for subcommands shows parents summary (#12) (thanks @DanielGilchrist)
  • Fix on_invalid_option executing from the wrong command (#11)

Full changelog: v3.0.0...v3.1.0

v3.0.0

14 Mar 20:46
138e003

Choose a tag to compare

CLI.cr is now Cling!

Overall summary of changes:

  • Update copyright (much more easier to use)
  • Improved naming throughout the library
  • Improved error handling
  • Improved interface for handling arguments and options
  • Rename the library: now officially Cling!
  • Switch to array system for Cling::Parser (much better now)
  • Improved interpreting for Cling::Executor
  • Support for multiple values for options
  • Support all-positional arguments
  • Improved Cling::Value interface including exceptions
  • Support Cling::Value extensions and add some default ones
  • Improved interface for formatter
  • (library) Improved specs and coverage
  • (library) Improved documentation and examples

Thank you to everyone that contributed with code, ideas, and other parts of the library 🎉
Special thanks to @sanks64! 💯

Full Changelog: v2.0.1...v3.0.0

v2.0.1

24 Oct 21:45
f45171f

Choose a tag to compare

Fixes a moderately high bug with subcommand resolution, updates the code to use Ameba and Crystal formatting, and changes the license to the Mozilla Public License to grant more freedom for users.

v2

23 Oct 20:26
cd449f4

Choose a tag to compare

v2

Version 2 of CLI.cr, bringing proper modularity and control to the library, subcommands support, proper argument and option value support, and a ton of parser and execution fixes.