Sha256: 654db6d619f2b0f1748b57bbe700cafae9d48abc439ec2d7eb38998026bfb7ef
Contents?: true
Size: 1.95 KB
Versions: 4
Compression:
Stored size: 1.95 KB
Contents
# Changelog ## 0.1.x ### Added * Add config, reading from env vars and yml files (inspired by gem-release) * Add `abstract` in order to signal a cmd is a base class that is not meant to be executed * Add `examples` in order to add examples for the command to the help output * Add `required :one, [:two, :three]` (DNF, i.e: either `:one` or both `:two` and `:three` must be given) * Add `opt '--one STR', type: :array` for options that can be given multiple times * Add `opt '--one STR', default: 'one'` * Add `opt '--one STR', requires :two` or `[:two, :three]` for options that depend on other options * Add `opt '--one', alias: :other` * Add `opt '--one', deprecated: 'message'`, and `cmd.deprected_opts`, so clients can look up which deprecated options were used * Add `opt '--one', alias: :other, deprecated: :other`, so that `cmd.deprecated_opts` returns the alias name if it was used * Add `opt '--int INT', min: 10, type: :integer` * Add `opt '--int INT', max: 10, type: :integer` * Add `opt '--one STR', format: /.+/` * Add `opt '--one STR', enum: ['one', /\w+/]` * Add `opt '--one STR', downcase: true` * Add `opt '--one STR', internal: true`, hide internal options from help output * Add `opt '--one STR', example: 'foo'` * Add `opt '--one STR', negate: %w(skip)` * Add `opt '--one STR', note: 'note'` * Add `opt '--one STR', see: 'https://provider.com/docs' * Add `opt '--one STR', secret: true` ### Changed * Much improved help output, modeled after rubygems' help output * Cl is now a class * Use the regstry gem, remove the local Registry implementation * If a flag (boolean option) has a default `true` automatically add `[no-]` to it, allowing to opt out * Runners are now registered in order to make them more easily extendable ### Removed * Removed cmd.defaults, options have default: [value] now ## 0.0.4 (2017-08-02) * Ancient history ## 0.0.3 (2017-08-02) * Ancient history ## 0.0.2 (2017-04-09) * Ancient history ## 0.0.1 (2017-04-08) * Ancient history
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cl-1.0.0 | CHANGELOG.md |
cl-0.1.28 | CHANGELOG.md |
cl-0.1.27 | CHANGELOG.md |
cl-0.1.26 | CHANGELOG.md |