- Added
:hidden
option 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)
- Added
:flag
option type. This acts like a:boolean
that can only be set to true, so has no--no-
prefix to disable it. (@Billiam in #117)
- Version bumped to 1.0.0 (@solnic)
- 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)
- 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)
- 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)
- Ability to pass command along with registry (for a singular command case) (@IvanShamatov)
- [Internal] Backported ability to run gem's CI against ruby 2.3 (@flash-gordon)
- Inline syntax for commands (@IvanShamatov)
- Introduced stderr to any diagnostic output (@IvanShamatov)
- [John Ledbetter & Luca Guidi] Fix ruby 2.7 warnings (@jodosha)
- Fix banner, when option is a type of Array (@IvanShamatov)
- Anonymous Registry sintax (@IvanShamatov)
- [Internal] Specs refactored, more unit specs added (@IvanShamatov)
- [Internal] removed
dry-inflector
as runtime dependency (@jodosha) - [Internal] Refactored Command class (command_name property removed) (@IvanShamatov)
- [Internal] Adapt gem to dry-rb style (@jodosha, @flash-gordon, @solnic, @cgeorgii)
- Added missing 'set' require (@solnic)
- [Internal] removed runtime and development dependency against
hanami-utils
(@jodosha, @IvanShamatov, @solnic)
hanami-cli
=>dry-cli
(@jodosha, @IvanShamatov, @solnic)
- Official support for Ruby: MRI 2.6 (@jodosha)
- Support
bundler
2.0+ (@jodosha)
- Introduce array type for arguments (
foo exec test spec/bookshelf/entities spec/bookshelf/repositories
) (@davydovanton, @AlfonsoUceda) - Introduce array type for options (
foo generate config --apps=web,api
) (@davydovanton, @AlfonsoUceda) - Introduce variadic arguments (
foo run ruby:latest -- ruby -v
) - Official support for JRuby 9.2.0.0 (@jodosha, @AlfonsoUceda)
- Print informative message when unknown or wrong option is passed (
"test" was called with arguments "--framework=unknown"
) (@davydovanton)
Compare v0.2.0.rc1...v0.2.0.rc2
Compare v0.2.0.beta2...v0.2.0.rc1
- Support objects as callbacks (@jodosha, @davydovanton)
- Ensure callbacks' context of execution (aka
self
) to be the command that is being executed (@jodosha, @davydovanton)
Compare v0.2.0.beta1...v0.2.0.beta2
- Register
before
/after
callbacks for commands (@davydovanton)
- Official support for Ruby: MRI 2.5 (@jodosha)
- Ensure default values for arguments to be sent to commands (@AlfonsoUceda)
- Ensure to fail when a missing required argument isn't provider, but an option is provided instead (@AlfonsoUceda)
Compare v0.1.0.beta3...v0.1.0.rc1
Compare v0.1.0.beta2...v0.1.0.beta3
- Allow default value for arguments (@AlfonsoUceda)
Compare v0.1.0.beta1...v0.1.0.beta2
- Commands banner and usage (@jodosha, @AlfonsoUceda)
- Added support for subcommands (@AlfonsoUceda)
- Validations for arguments and options (@AlfonsoUceda)
- Commands arguments and options (@AlfonsoUceda)
- Commands description (@AlfonsoUceda)
- Commands aliases (@AlfonsoUceda, @oana-sipos)
- Exit on unknown command (@jodosha)
- Command lookup (@AlfonsoUceda, @oana-sipos)
- Trie based registry to register commands and allow third-parties to override/add commands (@jodosha, @timriley)