Skip to content

Releases: dry-rb/dry-cli

v1.3.0

29 Jul 04:49
v1.3.0
3a97d5c

Choose a tag to compare

Added

  • Support unlimited nesting when registering commands via register with 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)

Compare v1.2.0...v1.3.0

v1.2.0

15 Oct 04:25
v1.2.0

Choose a tag to compare

Added

  • 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)

Compare v1.1.0...v1.2.0

v1.1.0

14 Jul 06:19
v1.1.0

Choose a tag to compare

Added

  • 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)

Compare v1.0.0...v1.1.0

v1.0.0

05 Nov 05:45
v1.0.0
7978a52

Choose a tag to compare

Changed

  • Version bumped to 1.0.0 (@solnic)

Compare v0.7.0...v1.0.0

v0.7.0

08 May 19:41
v0.7.0

Choose a tag to compare

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

Compare v0.6.0...v0.7.0

v0.6.0

06 Mar 11:43
v0.6.0

Choose a tag to compare

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

Compare v0.5.1...v0.6.0

v0.5.1

23 Jan 08:50
v0.5.1
c2bede7

Choose a tag to compare

Fixed

  • Added missing 'set' require (@solnic)

Compare v0.5.0...v0.5.1