Releases: devnote-dev/cling
Releases · devnote-dev/cling
v3.1.0
Features
- Added nilable cast methods for
Value - Added type conversion methods for
Value - Implemented
hiddenarguments and options (for documentation) - Added
exit_programhelper 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#executenow returns program exit code- Added more specific messages to command/execution errors
Fixes
- Invalid arguments and options now raise with
CommandErrorinstead ofExecutionError - Fix
--helpsummary for subcommands shows parents summary (#12) (thanks @DanielGilchrist) - Fix
on_invalid_optionexecuting from the wrong command (#11)
Full changelog: v3.0.0...v3.1.0
v3.0.0
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::Valueinterface including exceptions - Support
Cling::Valueextensions 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
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
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.