Skip to content
Myr

Merge branch 'develop' into release/5.x

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parents 3ab2196, d5186ba · Browse files · 5 files+25 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+25 added−3 removed

  • other:+25 added−3 removed

5 files+25 added−3 removed

modified:.github/workflows/tests.yml+1 added-1 removed
added:.github/FUNDING.yml+2 added
modified:typings/commander-tests.ts+13 added-1 removed
modified:typings/index.d.ts+1 added-1 removed
109 unmodified lines
110 * });111 *112 * @returns Command for chaining113 */114 action(fn: (...args: any[]) => void): Command;114 action(fn: (...args: any[]) => void | Promise<void>): Command;115116 /**117 * Define option with `flags`, `description` and optional118 * coercion `fn`.
210 unmodified lines
modified:CHANGELOG.md+8 added
59 unmodified lines
60If you use `program.args` or more complicated tests to detect a missing subcommand, you may be able to delete the code and rely on the default behaviour.6162If you use `.command('*')` to add a default command, you may be be able to switch to `isDefault:true` with a named command.6364## [4.1.1] (2020-02-02)6566### Fixed6768* TypeScript definition for `.action()` should include Promise for async ([#1157])6970## [4.1.0] (2020-01-06)7172### Added73
420 unmodified lines
494[#1145]: https://github.com/tj/commander.js/pull/1145495[#1146]: https://github.com/tj/commander.js/pull/1146496[#1149]: https://github.com/tj/commander.js/pull/1149497[#1153]: https://github.com/tj/commander.js/issues/1153498[#1157]: https://github.com/tj/commander.js/pull/1157499[#1159]: https://github.com/tj/commander.js/pull/1159500501[Unreleased]: https://github.com/tj/commander.js/compare/master...develop502[5.0.0-0]: https://github.com/tj/commander.js/compare/v4.2.o..v5.0.0-0503[4.1.1]: https://github.com/tj/commander.js/compare/v4.0.0..v4.1.1504[4.1.0]: https://github.com/tj/commander.js/compare/v4.0.1..v4.1.0505[4.0.1]: https://github.com/tj/commander.js/compare/v4.0.0..v4.0.1506[4.0.0]: https://github.com/tj/commander.js/compare/v3.0.2..v4.0.0507[4.0.0-1]: https://github.com/tj/commander.js/compare/v4.0.0-0..v4.0.0-1
5 unmodified lines