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] [Updated] (CB-5902) `cordova plugin rm` include a wildcard option
Date Mon, 27 Jan 2014 12:01:42 GMT

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

Kelvin Dart updated CB-5902:
----------------------------

    Description: 
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 (it's not the end of the world to copy
and paste each plugin identifier). Is it therefore possible to include include the ability
to specify a wildcard regex to remove all plugins matching a patter, 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).

It's not the end of the world either way - I just can see myself using this feature quite
often. Just my two cents. 

  was:
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 (it's not the end of the world to copy
and paste each plugin identifier). Is it therefore possible to include include the ability
to specify a wildcard regex to remove all plugins matching a patter, 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).

It's not the end of the world either way - I just can see myself using this feature. Just
my two cents. 


> `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
>              Labels: features
>
> 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 (it's not the end of the world
to copy and paste each plugin identifier). Is it therefore possible to include include the
ability to specify a wildcard regex to remove all plugins matching a patter, 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).
> It's not the end of the world either way - I just can see myself using this feature quite
often. Just my two cents. 



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

Mime
View raw message