Releases: dry-rb/dry-cli
Releases · dry-rb/dry-cli
v1.4.1
Fixed
- Remove spurious leading blank line when printing usage output. (@aaronmallen in #154)
v1.4.0
Added
- Provide the CLI’s
outanderrstreams to command instances (unless@outand@errivars already exist in the command). (@aaronmallen in #150)
Changed
- Require Ruby 3.2 or later. (@timriley)
Fixed
- Pass a commands keyword arguments to any related callbacks. (@gustavothecoder in #136)
- Avoid duplicated option names in
--helpoutput when a subclass re-defines an option. (@gustavothecoder in #143) - Properly raise an error when an invalid value is passed to an option (previously this was working for arguments only, not options). (@gustavothecoder in #142)
v1.3.0
Added
-
Support unlimited nesting when registering commands via
registerwith blocks. (@aaronmallen in #149)You could previously do this only with fully qualified registrations:
Commands.register "nested one", MyFirstNestedCommand Commands.register "nested one two", MySecondNestedCommand Commands.register "nested one two three", MyThirdNestedCommand
Now you can do the same via blocks:
Commands.register "nested" do register "one", MyFirstNestedCommand do register "two", MySecondNestedCommand do register "three", MyThirdNestedCommand end end end
Changed
- Set minimum Ruby version to 3.1. (@timriley)
v1.2.0
Added
- Added
:hiddenoption to register commands that should not be shown in the help output. (@benoittgt in #137) - Provide suggestions when there is a typo in a command name. (@benoittgt in #138)
v1.1.0
v1.0.0
v0.7.0
Added
- Inheritable attributes for subclasses of commands (@IvanShamatov)
- Ability to register instances, not only classes as Commands (@IvanShamatov)
- Add support for subcommands with a parent command (@unrooty)
Fixed
- Safely rescue pipe exception, when you CLI app is producing output for piped CLI app (IvanShamatov)
- Safely rescue keyboard interrupts (@IvanShamatov)
- [Internal] Don't run specs twice (@jodosha)
- Update inline call with keyward arguments (@flash-gordon)
Changed
- Extracted Dry::CLI::Utils::Files into dry-files (@jodosha)
- Drop 2.3 ruby support (@IvanShamatov)
- [Internal] Changelog, issue templates (@solnic)
- Documentation updates (@davydovanton)
- Remove concurrent-ruby as runtime dependency (@jodosha)
- [Internal] Banner and Parses refactoring (@IvanShamatov)
v0.6.0
Added
- [Ivan Shamatov] Ability to pass command along with registry (for a singular command case)
- [Nikita Shilnikov] [Internal] Backported ability to run gem's CI against ruby 2.3
- [Ivan Shamatov] Inline syntax for commands
- [Ivan Shamatov] Introduced stderr to any diagnostic output
Fixed
- [John Ledbetter & Luca Guidi] Fix ruby 2.7 warnings
- [Ivan Shamatov] Fix banner, when option is a type of Array