cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Dart (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-5902) `cordova plugin rm` include a wildcard option
Date Mon, 27 Jan 2014 11:59:37 GMT
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)

Mime
View raw message