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

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

GitHub user TimBarham opened a pull request:

    https://github.com/apache/cordova-lib/pull/225

    CB-9065 Allow removing plugins by short name.

    Adds logic to `plugin remove` to look up a plugin by "short name" if we 
don't find it by id. This means, for example, that you can use the following 
command:
    
        cordova plugin remove camera
    
    Instead of:
    
        cordova plugin remove cordova-plugin-camera
    
    Also removes a bunch of unecessary calls to `path.join(projectRoot, 
'plugins')`, since we already have this path stored in a variable.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-lib CB-9065

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-lib/pull/225.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #225
    
----
commit 92c4c16ebd852fb04f3b8c970abf76ccb0eb1015
Author: Tim Barham <[email protected]>
Date:   2015-05-22T19:11:59Z

    CB-9065 Allow removing plugins by short name.
    
    Adds logic to 'plugin remove' to look up a plugin by "short name" if we 
don't find it by id.

----


> Allow removing plugins by short name
> ------------------------------------
>
>                 Key: CB-9065
>                 URL: https://issues.apache.org/jira/browse/CB-9065
>             Project: Apache Cordova
>          Issue Type: Improvement
>    Affects Versions: 5.0.0
>            Reporter: Tim Barham
>            Assignee: Tim Barham
>
> It would be nice if we could remove plugins by short name. Things are better 
> now with the new plugin ids - it's easier to remember and type {{cordova 
> plugin remove cordova-plugin-camera}} than {{cordova plugin remove 
> org.apache.cordova.camera}}, but it would be even nicer to only have to type 
> {{cordova plugin remove camera}}.
> If multiple installed plugins happen to share the same short name, the remove 
> command should probably just fail (with an informative error message).



--
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