-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
split cli parsing #2553
split cli parsing #2553
Commits on Oct 20, 2016
-
started separating the mocha cli program into parts to make sections reusable by custom runners.
Configuration menu - View commit details
-
Copy full SHA for e23b447 - Browse repository at this point
Copy the full SHA e23b447View commit details -
Configuration menu - View commit details
-
Copy full SHA for abdf5eb - Browse repository at this point
Copy the full SHA abdf5ebView commit details
Commits on Oct 21, 2016
-
got rid of shitty getOptions and fixex program.opts() on Command.
parse is much much much easier now.
Configuration menu - View commit details
-
Copy full SHA for 8774377 - Browse repository at this point
Copy the full SHA 8774377View commit details -
decided to force using makeCommand where possible,
as its the easiest way to simplify the usage and ensure everything is called as it should be. otherwise its too easy to introduce bugs with things like --colours and --opts.
Configuration menu - View commit details
-
Copy full SHA for 818492f - Browse repository at this point
Copy the full SHA 818492fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53f77c9 - Browse repository at this point
Copy the full SHA 53f77c9View commit details -
storing globals in a seperate var is pointless.
its available as program.globals
Configuration menu - View commit details
-
Copy full SHA for 7e5e27b - Browse repository at this point
Copy the full SHA 7e5e27bView commit details -
un-dufused the removal of the globals.
added requires and globals to command once parsed. making it really easy to get it.
Configuration menu - View commit details
-
Copy full SHA for ad489f5 - Browse repository at this point
Copy the full SHA ad489f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc9efd - Browse repository at this point
Copy the full SHA 9cc9efdView commit details
Commits on Oct 24, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 1ae8842 - Browse repository at this point
Copy the full SHA 1ae8842View commit details -
Configuration menu - View commit details
-
Copy full SHA for 639b441 - Browse repository at this point
Copy the full SHA 639b441View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb96de7 - Browse repository at this point
Copy the full SHA eb96de7View commit details -
change program.parse to be protected.
set program.opts before and after parsing. And make it not ennumerable. rename optsArgs to optsFile added tests for parser and cli [wip]
Configuration menu - View commit details
-
Copy full SHA for 8d583d0 - Browse repository at this point
Copy the full SHA 8d583d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 375734d - Browse repository at this point
Copy the full SHA 375734dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 411026b - Browse repository at this point
Copy the full SHA 411026bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3858674 - Browse repository at this point
Copy the full SHA 3858674View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc3d7cc - Browse repository at this point
Copy the full SHA cc3d7ccView commit details
Commits on Oct 25, 2016
-
Stopped overriding Command.parse and moved it all to Command.parseOpt…
…ions as this allows parseOptions, rawArgs, and parse to work as expected. relocated all args manipulation out of mocha and _mocha. argv is no longer mutated. I tried to avoid implementing such a change but its impossible to use multiple makeCommand instances without this safety.
Configuration menu - View commit details
-
Copy full SHA for 08ba0ef - Browse repository at this point
Copy the full SHA 08ba0efView commit details -
fixed oopsie removing Mocha from cli added a convenience method loadOptsFile which will surely be a common use case
Configuration menu - View commit details
-
Copy full SHA for 6a335ef - Browse repository at this point
Copy the full SHA 6a335efView commit details
Commits on Oct 26, 2016
-
Cheeky commit: updated Commander options --global --require
to use Commanders recommended way of collecting multiple values. also means less magic in parseOptions.
Configuration menu - View commit details
-
Copy full SHA for 8b8db38 - Browse repository at this point
Copy the full SHA 8b8db38View commit details
Commits on Nov 10, 2016
-
Configuration menu - View commit details
-
Copy full SHA for bbc79ca - Browse repository at this point
Copy the full SHA bbc79caView commit details
Commits on Jan 9, 2018
-
Merge branch 'master' of github.com:mochajs/mocha into feature/split_…
…cli_parsing # Conflicts: # bin/_mocha
Configuration menu - View commit details
-
Copy full SHA for 7fff92a - Browse repository at this point
Copy the full SHA 7fff92aView commit details -
stripped out hacky Command.parseOptions code
using a custom parser instead of Commanders. updated test cases expanded args in `mocha` because it needs to happen before the call to `_mocha`
Configuration menu - View commit details
-
Copy full SHA for 5572b50 - Browse repository at this point
Copy the full SHA 5572b50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38102ef - Browse repository at this point
Copy the full SHA 38102efView commit details -
addActions can be used on any Command instance
set program._name in makeCommand instead
Configuration menu - View commit details
-
Copy full SHA for 2488485 - Browse repository at this point
Copy the full SHA 2488485View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9668709 - Browse repository at this point
Copy the full SHA 9668709View commit details -
Configuration menu - View commit details
-
Copy full SHA for 833413f - Browse repository at this point
Copy the full SHA 833413fView commit details