[
https://issues.apache.org/jira/browse/CB-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633540#comment-13633540
]
Michael Brooks commented on CB-3050:
------------------------------------
At the moment, the {{phonegap-cli}} [augments the
{{cordova-cli}}|https://github.com/mwbrooks/phonegap-cli/blob/master/lib/phonegap/util/cordova.js]
by adding the following interface:
{code}
cordova.platform.supports(platform, callback);
{code}
I'll review the various use-cases internal to {{cordova-cli}} and come up with
an interface that works privately and publicly.
> Publicly Expose Platform Check Requirements
> -------------------------------------------
>
> Key: CB-3050
> URL: https://issues.apache.org/jira/browse/CB-3050
> Project: Apache Cordova
> Issue Type: Improvement
> Components: CLI
> Affects Versions: 2.7.0
> Reporter: Michael Brooks
> Assignee: Michael Brooks
> Fix For: 2.7.0
>
>
> When using the {{cordova-cli}} as a node module, it is useful for the client
> to check platform support.
> Currently, the {{check_requirements(callback)}} function is available under
> {{/src/metadata/xxx_parser.js}}. This is only available to internal modules
> and cannot be publicly accessed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira