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

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

Github user TimBarham commented on the pull request:

    https://github.com/apache/cordova-lib/pull/225#issuecomment-104787089
  
    Hmmm... Interesting point. I like the convenience of a short name, but I 
don't think it is worth the weirdness of adding a custom field to package.json 
just for that. If I check this in, and people get used to it, they'll expect it 
to be supported going forward.
    
    So, here's a possible alternatively that will work now and in the future... 
rather than supporting removing by name, we could support removing by a "short 
id". That is - you could drop the `cordova-plugin-` from the start. So 
`camera`, for example, would match `cordova-plugin-camera`. I think that makes 
sense - having to specify `cordova-plugin-` is kinda superfluous. We should 
support this shortcut when *adding* a plugin, too.
    
    What do you think?


> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to