[ 
https://issues.apache.org/jira/browse/CB-6767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14012667#comment-14012667
 ] 

ASF GitHub Bot commented on CB-6767:
------------------------------------

Github user jsoref commented on the pull request:

    https://github.com/apache/cordova-lib/pull/20#issuecomment-44566880
  
    I don't really want to do that right now.
    
    One reason I want to do it this way instead of that way is that various 
pieces of code will do require(), and I want them to share a global value. If I 
did "new ..." then they'd all need to somehow be *given* that instance of 
Cordova...


> Allow `cordova` to be replaceable
> ---------------------------------
>
>                 Key: CB-6767
>                 URL: https://issues.apache.org/jira/browse/CB-6767
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, CordovaLib
>    Affects Versions: 3.4.0
>            Reporter: Josh Soref
>            Assignee: Josh Soref
>
> Anyone who tries to incorporate CordovaLib into their own product will 
> eventually have things like:
> `myapp plugin add`
> which yield errors like:
> "please use `cordova plugin add <something>`"
> It'd be nice for the errors to actually be able to say "please use `myapp 
> plugin add <something>`" instead.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to