Skip to content
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

fix: cannot call config or create commands #495

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

raphinesse
Copy link
Contributor

A few exceptions aside, the cli function checks if the current command exists as a property in cordova-lib. If not, it throws an error that the command is unsupported:

Cordova does not know config; try `cordova help` for a list of all the available commands.

Since the config and create commands are not handled by cordova-lib anymore and their previous implementations in cordova-lib have recently been removed, we need to make an exceptions for those commands.

A few exceptions aside, the `cli` function checks if the current command
exists as a property in `cordova-lib`. If not, it throws an error that
the command is unsupported:

    Cordova does not know config;
    try `cordova help` for a list of all the available commands.

Since the `config` and `create` commands are not handled by
`cordova-lib` anymore and their previous implementations in
`cordova-lib` have recently been removed, we need to make an exceptions
for those commands.
@raphinesse raphinesse added the bug label Nov 21, 2019
@raphinesse raphinesse added this to the 10.0.0 milestone Nov 21, 2019
@raphinesse raphinesse requested review from timbru31 and erisu November 21, 2019 21:25
@codecov-io
Copy link

codecov-io commented Nov 21, 2019

Codecov Report

Merging #495 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #495      +/-   ##
==========================================
- Coverage   86.63%   86.58%   -0.06%     
==========================================
  Files           3        3              
  Lines         247      246       -1     
==========================================
- Hits          214      213       -1     
  Misses         33       33
Impacted Files Coverage Δ
src/cli.js 83.74% <100%> (-0.08%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed5e60b...f674d68. Read the comment docs.

@raphinesse raphinesse merged commit 838a057 into apache:master Nov 22, 2019
@raphinesse raphinesse deleted the fix-non-lib-commands branch November 22, 2019 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants