Skip to content

Releases: at-grandpa/clim

0.3.2

21 Jun 04:17
237c758
Compare
Choose a tag to compare
  • Fix for crystal version 0.25.0

0.3.1

31 May 00:27
d69c703
Compare
Choose a tag to compare
  • Add custom_help

0.3.0

28 Apr 07:53
e9d2223
Compare
Choose a tag to compare
  • (breaking-change) The type of the option is determined by the default and required patterns. (#28)
  • Error handling when the type of the value entered from the command is different.

0.2.2

23 Mar 00:39
df6e829
Compare
Choose a tag to compare
  • Type definition is optional in option.

0.2.1

21 Mar 03:23
02f7498
Compare
Choose a tag to compare
  • fix macro
    • desc
    • usage

0.2.0

17 Mar 09:32
8a5598b
Compare
Choose a tag to compare
  • (breaking-change) New Syntax.
  • Option types
  • version macro

0.1.5

01 Jan 15:36
Compare
Choose a tag to compare
  • Add alias_name.
  • Fix Readme.

0.1.4

02 Aug 00:03
Compare
Choose a tag to compare
  • Fix Error message.
  • Add ClimInvalidOptionException.
  • Some refactoring.
    • Add comment.
    • Add spec case.
    • Change variable/method name.
    • Delete unnecessary code.
    • etc ...

0.1.3

29 Jul 22:12
Compare
Choose a tag to compare
  • (breaking-change) Changed the argument opts of the run block from Clim::Options to Hash.

    # [before]
    run do |opts, args|
      puts typeof(opts)                             # => Clim::Options
      puts typeof(opts.string["string-long-name"])  # => String
      puts typeof(opts.s["string-long-name"])       # => String
    end
    
    # [after]
    run do |opts, args|
      puts typeof(opts)                                 # => Hash(String, Array(String) | Bool | String | Nil)
      puts opts["string-long-name"]                     # => print your option value.
      puts typeof(opts["string-long-name"])             # => (Array(String) | Bool | String | Nil)
      puts typeof(opts["string-long-name"].as(String))  # => String
      # puts opts["s"]                                  # => ERROR: Missing hash key: "s"
    end
  • Deleted the -h option from the default setting.

  • Some bug fixes and refactoring.

0.1.2

20 Jun 23:41
Compare
Choose a tag to compare
  • Nilable options.