[ 
https://issues.apache.org/jira/browse/CB-8835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Grebnov updated CB-8835:
-------------------------------
    Labels: triaged  (was: )

> platform already added returns none zero
> ----------------------------------------
>
>                 Key: CB-8835
>                 URL: https://issues.apache.org/jira/browse/CB-8835
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Carlos Santana
>              Labels: triaged
>
> Adding a plugin that is already installed it returns zero, none error
> $ cordova plugin add ../node_modules/cordova-plugin-console/
> Installing "org.apache.cordova.console" for ios
> $cordova plugin add ../node_modules/cordova-plugin-console/
> Plugin "org.apache.cordova.console" already installed on ios.
> $ echo $?
> 0
> But adding a platform that is already added it returns 1, error.
> I want for both plugin and platform to return zero and be consistent, for now.
> Later feature could be to do an automated upgrade if the plugin or platform  
> to be added is higher version, then upgrade for platform and an upgrade 
> (remove & add) for plugin (also giving the ability to have plugin update 
> command).
> This takes more effort to implement as a lot of things need to be check if 
> the upgrade will be succesful with all cascading dependencies between plugins 
> and platforms and plugins.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to