You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kelvin Dart (JIRA)" <ji...@apache.org> on 2014/01/27 12:59:37 UTC

[jira] [Created] (CB-5902) `cordova plugin rm` include a wildcard option

Kelvin Dart created CB-5902:
-------------------------------

             Summary: `cordova plugin rm` include a wildcard option
                 Key: CB-5902
                 URL: https://issues.apache.org/jira/browse/CB-5902
             Project: Apache Cordova
          Issue Type: New Feature
          Components: CLI, Plugman
    Affects Versions: 3.3.0
         Environment: All
            Reporter: Kelvin Dart
            Priority: Trivial


This is something on my mind which would help a small bit (and I thought would be quite a nice addition to the CLI).

How easy would it be to implement a regex matcher in plugman - so I can remove plugins using a wildcard regex? I have a few plugins which have the same domain identifier (in the following format: com.mycompany.*).

Once added, I sometimes need to remove every company plugin while I'm developing it - at the moment it can be a bit painstaking to type each one. Is it therefore possible to include include the ability to specify a wildcard regex so I can do the following (as an example to remove all Cordova plugins):
`cordova plugin rm org.apache.cordova*`
Or:
`cordova plugin rm org.apache.cordova.*`

This will then iterate over my list of installed plugins and pattern match and remove any plugin that's successfully matched to the supplied string.

It comes with the added benefit, if I need to debug an issue that might be plugin related, then I can remove all plugins via `cordova plugin rm *`. It also is consistent with the CLI way of doing things (i.e. to clear a directory on the Mac I can do `rm *.js` to delete all files with a js extension).

Just my two cents.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)