Skip to content

v1.0.0-alpha.7

Pre-release
Pre-release
Compare
Choose a tag to compare
@WesCossick WesCossick released this 03 Aug 16:40
· 428 commits to master since this release
c780169
Allow control of accepting multiple `accepts` items (#373)

* Allow control of accepting multiple `accepts` items

* Change back to shorter value for test

* Bump the alpha version number to .7

* Remove debugging

* Update src/utils/get-command-spec.ts

Co-authored-by: Wes Cossick <[email protected]>

* Use input interface to drive object validity checking

* Formatting standardization

* Complain when `data.accepts` is not an `Array`

* Improve validation of data.accepts, add test for same

* Ensure options can accept multiple values if required

* Improve bad `accepts` type detection

* Add detection of accepts not being an array

* Standardize formatting of test file

* Add coverage of improper option accepts

* Additional test improvements

* Enforce accepts being defined when multiple accepts is indicated

* Improve validation that accepts is an array

* Add comments

* Resequence to simplify comments

* Update src/utils/get-organized-arguments.ts

Co-authored-by: Wes Cossick <[email protected]>

* Update src/screens/help.ts

Co-authored-by: Wes Cossick <[email protected]>

* Update src/utils/get-command-spec.ts

Co-authored-by: Wes Cossick <[email protected]>

* Update src/utils/get-organized-arguments.ts

Co-authored-by: Wes Cossick <[email protected]>

* Revert comment change

* Improve test name

* Update test literal comparisons to match modifications

* Rename folders and files of new failure cases

* Improve tests and results

* Undo prefixing with `Error: `

* Revert improvement in specificity of test

Co-authored-by: Wes Cossick <[email protected]>