-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Comparing changes
Open a pull request
base repository: tj/commander.js
base: v4.1.1
head repository: tj/commander.js
compare: v5.0.0
Commits on Dec 11, 2019
-
Run default command if it's not just * (#1062)
* Run default command if it's not just * * Fix lint error * Add prgm action, only emit command:* when it's registered * Test asterisk handler not called without args * Restore check to not call program when signature wrong, and expand program tests * Document and rework and extend asterisk tests * Update * and program-action logic based on PR feedback * Rename program-action to program-command * Remove unnecessary command listener
Configuration menu - View commit details
-
Copy full SHA for 4fb9ed4 - Browse repository at this point
Copy the full SHA 4fb9ed4View commit details
Commits on Dec 29, 2019
-
Configuration menu - View commit details
-
Copy full SHA for dd23b4c - Browse repository at this point
Copy the full SHA dd23b4cView commit details
Commits on Jan 1, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 80b3587 - Browse repository at this point
Copy the full SHA 80b3587View commit details
Commits on Jan 7, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 491b2e4 - Browse repository at this point
Copy the full SHA 491b2e4View commit details
Commits on Jan 9, 2020
-
fix option type definition to match usage. (#1119)
* fix option type def * add test improve types * change definition order * change def order * fix typing * improve typing enforce current implementation * final patch * drop all void returning option * fix missing boolean type for default value * clean code * clean code
Configuration menu - View commit details
-
Copy full SHA for 68e584f - Browse repository at this point
Copy the full SHA 68e584fView commit details
Commits on Jan 11, 2020
-
Remove EventEmitter from TypeScript definition file (#1146)
* Remove NodeJS.EventEmitter from TypeScript definition * Add symbol It is JavaScript not node and ok to include to match EventEmitter defintition
Configuration menu - View commit details
-
Copy full SHA for c448afb - Browse repository at this point
Copy the full SHA c448afbView commit details
Commits on Jan 15, 2020
-
parseOptions rework phase 1 (#1138)
* Remove openIssues test for #1062, fixed and being tested * Rework parseOptions handling of unknown arguments * First tests for parseOptions, enable prepared regression tests * Add tests for parseOptions * Add tests on program.args after calling parse * Minor update to README for changed parse behaviour * Tweak inline .parseOption examples
Configuration menu - View commit details
-
Copy full SHA for 62234f6 - Browse repository at this point
Copy the full SHA 62234f6View commit details
Commits on Jan 21, 2020
-
Combine normalize and parseoptions, and update combined option handli…
…ng (#1152) * Add tests for Utility Conventions before changing code to match * Switch from preflight including normalise to just testing parseOptions * Only refactor known options Do the work in .parseOptions and delete single-pass .normalize * Add short flag processing to READMEm, and literal -- * Improve character description * Add a note that options not positional. * Remove regression tests for bug not really fixed by this * Add back #561 into known issues * Refactor to make a little clearer and symmetrical * Use template to construct strings consistently within parseOptions
Configuration menu - View commit details
-
Copy full SHA for 1691344 - Browse repository at this point
Copy the full SHA 1691344View commit details
Commits on Jan 31, 2020
-
Parse rework for nested commands (#1149)
* First cut at parse rework - skip asterisk tests - other tests runnning - nested commands untested - lots of details to check * Add check for requiredOption when calling executable subcommand * Set program name using supported approach * Add .addCommand, easy after previous work * Add support for default command using action handler - and remove stale _execs * Add implicitHelpCommand and change help flags description * Add implicit help command to help * Turn off implicit help command for most help tests * .addHelpCommand * Remove addHelpCommand from tests and make match more narrow * Use test of complete default help output * Add tests for whether implicit help appears in help * Add tests that help command dispatched to correct command * Add simple nested subcommand test * Add default command tests for action based subcommand * Remove mainModule, out of scope for current PR * Add legacy asterisk handling and tests * Add more initialisation so object in known state * Tests for addCommand * Add first cut at enhanced default error detection * Add test that addCommand requires name * Add block on automatic name generation for deeply nested executables * Add block on automatic name generation for deeply nested executables * Fix describe name for tests * Refine unknownCommand handling and add tests * Add suggestion to try help, when appropriate * Fix typo * Move common command configuration options in README, and add isDefault example program * Add isDefault and example to README * Add nested commands * Document .addHelpCommand, and tweaks * Remove old default command, and rework command:* example * Document .addCommand * Remove comment referring to removed code. * Revert the error tip "try --help", not happy with the wording * Say "unknown command", like "unknown option" * Set properties to null rather than undefined in constructor
Configuration menu - View commit details
-
Copy full SHA for 1345f98 - Browse repository at this point
Copy the full SHA 1345f98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30368b8 - Browse repository at this point
Copy the full SHA 30368b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e5b05e - Browse repository at this point
Copy the full SHA 3e5b05eView commit details
Commits on Feb 1, 2020
-
* First collection * Second draft * Bump version (not tagged) * Add issue links * Links not displaying correctly, debugging * More experimenting * Restore links, try again * Add CHANGELOG entry for removing EventEmitter from TypeScript
Configuration menu - View commit details
-
Copy full SHA for 6857562 - Browse repository at this point
Copy the full SHA 6857562View commit details -
Add VSCode tip and rework debugging
Co-authored-by: James Renaud <james.renaud@mitel.com>
Configuration menu - View commit details
-
Copy full SHA for dd68652 - Browse repository at this point
Copy the full SHA dd68652View commit details
Commits on Feb 2, 2020
-
Merge pull request #1166 from shadowspawn/feature/vscode-debugging
Add VSCode tip and rework debugging section
Configuration menu - View commit details
-
Copy full SHA for 3ab2196 - Browse repository at this point
Copy the full SHA 3ab2196View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb84f6e - Browse repository at this point
Copy the full SHA cb84f6eView commit details
Commits on Feb 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e242593 - Browse repository at this point
Copy the full SHA e242593View commit details -
Throw for author errors and improve (#1165)
* Throw errors for author errors. Detect bad variadic when added. * Throw errors for author errors. Detect bad variadic when added.
Configuration menu - View commit details
-
Copy full SHA for d9ac483 - Browse repository at this point
Copy the full SHA d9ac483View commit details -
Update dependencies and rewrite tests (#1167)
* Update dependencies - fix or disable new Jest tests - stick with LTS node version * Rework exec tests to use promises instead of jest callback * Suppress warning * Turn warning back on, fixing * Fix lint warnings and reduce use of callback
Configuration menu - View commit details
-
Copy full SHA for d736ff7 - Browse repository at this point
Copy the full SHA d736ff7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28af796 - Browse repository at this point
Copy the full SHA 28af796View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ca5bc7 - Browse repository at this point
Copy the full SHA 2ca5bc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5893177 - Browse repository at this point
Copy the full SHA 5893177View commit details
Commits on Feb 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 5f725f6 - Browse repository at this point
Copy the full SHA 5f725f6View commit details -
Make .helpInformation public and update help sections in README (#1169)
* Make example shorter * Focus on point of example, shorten code * Make .helpInformation public * Update mostly help sections - add .helpInformation - shorten related examples - remove callback example - add links to example code * Add simple calls to help function to typings test
Configuration menu - View commit details
-
Copy full SHA for a094ef2 - Browse repository at this point
Copy the full SHA a094ef2View commit details -
Replace git-style wording from README (#1171)
* Remove git-style from docs * Remove stale comment
Configuration menu - View commit details
-
Copy full SHA for fbdd132 - Browse repository at this point
Copy the full SHA fbdd132View commit details
Commits on Feb 7, 2020
-
Parse argument conventions (#1172)
* Add "from" parameter to .parse() * Add docs for ParseOptions * Add .parse options to README * Lint, whitespace * Fill in parseAsync docs
Configuration menu - View commit details
-
Copy full SHA for 30ae4ac - Browse repository at this point
Copy the full SHA 30ae4acView commit details
Commits on Feb 8, 2020
-
Preparing for 5.0.0-1 prerelease (#1174)
* Add help information * Add error changes to changelog * Add .parse enhancements to CHANGELOG * List error changes separately * Bump version * Fix 4.1.1 link
Configuration menu - View commit details
-
Copy full SHA for 1e1ed08 - Browse repository at this point
Copy the full SHA 1e1ed08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f3aebb - Browse repository at this point
Copy the full SHA 6f3aebbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8a14c9 - Browse repository at this point
Copy the full SHA a8a14c9View commit details
Commits on Feb 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1704022 - Browse repository at this point
Copy the full SHA 1704022View commit details -
Suggest help when unknown command (#1179)
* Suggest help when unknown command * Use custom help flag in message
Configuration menu - View commit details
-
Copy full SHA for 28b649d - Browse repository at this point
Copy the full SHA 28b649dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31f1878 - Browse repository at this point
Copy the full SHA 31f1878View commit details
Commits on Feb 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1a84b80 - Browse repository at this point
Copy the full SHA 1a84b80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 729e432 - Browse repository at this point
Copy the full SHA 729e432View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08ec04e - Browse repository at this point
Copy the full SHA 08ec04eView commit details
Commits on Feb 12, 2020
-
* Add missing changelog entry * Add test on parse return type
Configuration menu - View commit details
-
Copy full SHA for 733047f - Browse repository at this point
Copy the full SHA 733047fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46f886f - Browse repository at this point
Copy the full SHA 46f886fView commit details
Commits on Feb 14, 2020
-
Added
fail-fast: false
to GitHub actions settings (#1187)All tests are run, so it is easier to see which environment failed.
Configuration menu - View commit details
-
Copy full SHA for 516a14c - Browse repository at this point
Copy the full SHA 516a14cView commit details
Commits on Feb 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for bdad7dc - Browse repository at this point
Copy the full SHA bdad7dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2491c76 - Browse repository at this point
Copy the full SHA 2491c76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77e511f - Browse repository at this point
Copy the full SHA 77e511fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a50bd6 - Browse repository at this point
Copy the full SHA 0a50bd6View commit details
Commits on Feb 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1757564 - Browse repository at this point
Copy the full SHA 1757564View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87bfca6 - Browse repository at this point
Copy the full SHA 87bfca6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3f453f - Browse repository at this point
Copy the full SHA a3f453fView commit details
Commits on Feb 21, 2020
-
Expand typescript checks (#1198)
* Add proof of concept Command type without option properties * Add program * Add tests for exported global, and start refactoring existing tests * Methodically test syntax, instead of just lots of README and example code
Configuration menu - View commit details
-
Copy full SHA for 3cf8cff - Browse repository at this point
Copy the full SHA 3cf8cffView commit details
Commits on Mar 1, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3c9f33f - Browse repository at this point
Copy the full SHA 3c9f33fView commit details
Commits on Mar 2, 2020
-
createCommand factory routine (#1191)
* Add factory method * Fix return doc * Can not use "this" for return type of createCommand * Use return type of createCommand for subcommand * Add mention of .command from .createCommand * Remove trailing space * Add examples for createCommand * Explain example and make a little more realistic * Add comments pointing from .addCommand to .command One of the downsides of extra ways of adding and creating commands is confusion with the more common way. * Add createCommand to README * Shift command/subcommand contrast * Use single quotes in ts like in js, and clean up whitespace in new code
Configuration menu - View commit details
-
Copy full SHA for 8c3dd6f - Browse repository at this point
Copy the full SHA 8c3dd6fView commit details
Commits on Mar 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for bd5a49e - Browse repository at this point
Copy the full SHA bd5a49eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95e0d19 - Browse repository at this point
Copy the full SHA 95e0d19View commit details
Commits on Mar 4, 2020
-
Add eslint settings for TypeScript (#1205)
* wip: Proposal of eslint setting of TypeScript. * Add eslint settings for TypeScript * Modify TypeScript lint target file
Configuration menu - View commit details
-
Copy full SHA for f14df07 - Browse repository at this point
Copy the full SHA f14df07View commit details
There are no files selected for viewing
This file was deleted.
This file was deleted.