Sha256: 03f24ee99759ef9c0fdbc266f8025f1a38a7f8f0bf886d3f934539d11fcada28

Contents?: true

Size: 1.65 KB

Versions: 6

Compression:

Stored size: 1.65 KB

Contents

# Changelog

## 0.1.0 (unreleased)

### 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 `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', 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', see: 'https://provider.com/docs'

### 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

### 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

6 entries across 6 versions & 1 rubygems

Version Path
cl-0.1.12 CHANGELOG.md
cl-0.1.11 CHANGELOG.md
cl-0.1.10 CHANGELOG.md
cl-0.1.9 CHANGELOG.md
cl-0.1.8 CHANGELOG.md
cl-0.1.7 CHANGELOG.md