summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Bump version to 2.1.1 by Chef Expeditor2.1.1Chef Expeditor2019-06-103-4/+12
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #66 from chef/deprecation-fix-unknown-keysMarc A. Paradise2019-06-102-1/+18
|\ \ | | | | | | Don't explode when there are unknown keys in 'config'
| * | Don't explode when there are unknown keys in 'config'deprecation-fix-unknown-keysMarc A. Paradise2019-06-072-1/+18
|/ / | | | | | | | | | | | | Update handle_deprecated_options to be graceful when 'config' has been modified externally to contain unknown keys. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* | Update CHANGELOG.md to reflect the promotion of 2.1.0Chef Expeditor2019-06-071-14/+11
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 2.1.0 by Chef Expeditor2.1.0Chef Expeditor2019-06-073-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #65 from chef/MIXLIB-CLI-63/deprecated-option-supportTim Smith2019-06-065-50/+458
|\ \ | | | | | | [MIXLIB-CLI-63] Add deprecated_option support
| * | Code review updates for deprecated_optionMIXLIB-CLI-63/deprecated-option-supportMarc A. Paradise2019-06-063-11/+55
| | | | | | | | | | | | Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
| * | [MIXLIB-CLI-63] Add deprecated_option supportMarc A. Paradise2019-06-064-50/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds deprecated option support by exposing a new ClassMethod, `deprecated_option`. It will generate a corresponding deprecated option, and if that option is used it will handle mapping of the old option to the new and issue a warning. `deprecated_option` accepts a subset of the parameters that `option` accepts. Most importantly, a deprecated option can't have a default value. There's a practical reason for this and a philosophical one. Practically, it makes it easy to track the situation where someone has set `use_separate_defaults` to `false`. In that case, we currently can't tell whether the user provided the flag, or it was set as a default. This could have been addressed, but: Philosphically it makes more sense to not have a default value on a deprecated item. If it's deprecated, you want people to stop using it. If it has a default, it's effectively forced in-use at all times. See function docs for further accepted parameters. To allow deprecated options without warnings, use parse_options as `parse_options(ARGV, show_deprecations: false)`. By default, warnings will be shown. This also moves some formatting code into its own class - it was causing methods to get mixed in that client classes didn't need; and I reached the point where I needed to access the formatting functions across methods in both Mixlib::CLI and Mixlib::CLI::ClassMethods. It made more sense to move them outside of the mixed-in bits, since it wasn't a concern of the caller that would be inheriting those methods. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* | | Bump version to 2.0.9 by Chef Expeditor2.0.9Chef Expeditor2019-06-053-5/+6
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #64 from tsub/fix-gem-homepage-urlTim Smith2019-06-051-1/+1
|\ \ \ | |/ / |/| | Fix gem homepage url
| * | Fix gem homepage urlTsubasa Takayama2019-06-051-1/+1
|/ / | | | | | | Signed-off-by: Tsubasa Takayama <tsubasatakayama511@gmail.com>
* | Bump version to 2.0.8 by Chef Expeditor2.0.8Chef Expeditor2019-06-013-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #62 from chef/bkTim Smith2019-05-314-43/+10
|\ \ | |/ | | Disable Travis testing & Update codeowners
| * Disable Travis testing & Update codeownersTim Smith2019-05-314-43/+10
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 2.0.7 by Chef Expeditor2.0.7Chef Expeditor2019-06-013-4/+12
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #61 from chef/bkTim Smith2019-05-312-3/+34
|\ \ | |/ | | Setup BuildKite for PR testing
| * Setup BuildKite for PR testingTim Smith2019-05-312-3/+34
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update CHANGELOG.md to reflect the promotion of 2.0.6Chef Expeditor2019-05-141-13/+10
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 2.0.6 by Chef Expeditorv2.0.6Chef Expeditor2019-05-143-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #60 from chef/better_inTim Smith2019-05-132-5/+29
|\ | | | | Print out human readable lists of allowed CLI options
| * Add more specs and use or not andTim Smith2019-05-132-8/+16
| | | | | | | | | | | | This seems to make more sense Signed-off-by: Tim Smith <tsmith@chef.io>
| * Print out human readable lists of allowed CLI optionsTim Smith2019-05-132-4/+20
|/ | | | | | Give a nice friendly sentence and not an array. This uses the code we nuked from chef/chef that did the same. Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 2.0.5 by Chef Expeditorv2.0.5Chef Expeditor2019-05-143-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #59 from chef/btm/included_textTim Smith2019-05-132-2/+2
|\ | | | | Improve the --help text output of 'in:'
| * Improve the --help text output of 'in:'btm/included_textBryan McLellan2019-05-132-2/+2
|/ | | | | | | The automatic addition of the 'in' options to the --help output could be more clear about what the list is. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Bump version to 2.0.4 by Chef Expeditorv2.0.4Chef Expeditor2019-04-233-4/+12
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #58 from chef/boilerplateTim Smith2019-04-2310-6/+88
|\ | | | | Add additional github templates and update codeowners
| * Add additional github templates and update codeownersboilerplateTim Smith2019-04-2310-6/+88
|/ | | | | | Get this repo in line with our current standards. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update CHANGELOG.md to reflect the promotion of 2.0.3Chef Expeditor2019-03-201-12/+9
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 2.0.3 by Chef Expeditorv2.0.3Chef Expeditor2019-03-203-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #56 from chef/add_backLamont Granquist2019-03-193-3/+6
|\ | | | | Add back support for Ruby 2.4
| * Test on the latest ruby releases in TravisTim Smith2019-03-191-2/+3
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add back support for Ruby 2.4Tim Smith2019-03-192-1/+3
|/ | | | | | | This allows us to use this on Chef 14 and Chef 15 and simplifies our maint for the next year. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update labels for expeditorTim Smith2019-03-191-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 2.0.2 by Chef Expeditorv2.0.2Chef Expeditor2019-01-043-4/+12
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #54 from chef/lcg/spec-testing-globals-always-ends-in-tearsTim Smith2019-01-042-5/+9
|\ | | | | fix global state pollution issues across examples
| * fix copyrightLamont Granquist2019-01-041-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix global state pollution issues across examplesLamont Granquist2019-01-042-5/+9
| | | | | | | | | | | | | | | | | | | | since classes are global state, having a single TestCLI class that threads through all the examples creates state pollution that can cause ordering problems. solve this by rewiring TestCLI to a new class every single time. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Update CHANGELOG.md to reflect the promotion of 2.0.1Chef Expeditor2019-01-041-12/+8
|/ | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 2.0.1 by Chef Expeditorv2.0.1Chef Expeditor2019-01-043-4/+8
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #51 from chef/slimTim Smith2019-01-041-4/+2
|\ | | | | Don't ship the test files in the gem artifact
| * Don't ship the test files in the gem artifactslimTim Smith2018-12-111-4/+2
| | | | | | | | | | | | | | Skip the Gemfile, Rakefile, Gemspec, and spec files as they aren't needed by the installed artifact. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Update CHANGELOG.md to reflect the promotion of 2.0.0Chef Expeditor2019-01-041-12/+15
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 2.0.0 by Chef Expeditorv2.0.0Chef Expeditor2019-01-041-3/+4
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #53 from chef/lcg/version-bumpTim Smith2019-01-042-2/+2
|\ \ | | | | | | actually do the major version bump
| * | actually do the major version bumpLamont Granquist2019-01-042-2/+2
|/ / | | | | | | | | | | expeditor at the last one, gotta bump VERSION Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version to 1.7.7 by Chef Expeditorv1.7.7Chef Expeditor2019-01-043-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #52 from chef/lcg/travis-updatesLamont Granquist2019-01-043-6/+10
|\ \ | |/ |/| update travis, drop ruby < 2.5, major version bump
| * update travis, drop ruby < 2.5, major version bumpLamont Granquist2019-01-043-6/+10
|/ | | | | | solely major version bump for the ruby support floor Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add code of conduct fileTim Smith2018-12-061-0/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>