juju / plugins

Basic collection of the first few plugins for Juju
28 stars 29 forks source link

Added juju get-filter command to filter specific entries in juju get output #16

Closed niedbalski closed 10 years ago

niedbalski commented 10 years ago
niedbalski commented 10 years ago

$ juju get-grep mysql query-cache-type {'default': True, 'description': 'Query cache is usually a good idea, but can hurt concurrency. Valid values are "OFF", "ON", or "DEMAND". http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_query_cache_type', 'type': 'string', 'value': 'OFF'}

mjs commented 10 years ago

The "get-grep" name made me think that the plugin would accept regexes but it doesn't appear to. Maybe call it "get-filter", "get-entry" or even "get-one"?

niedbalski commented 10 years ago

Well , we can extend it to look more like a proper grep, actually this was a simple hack , but definitively needs a improvement.

On Monday, July 28, 2014, Menno Smits notifications@github.com wrote:

The "get-grep" name made me think that the plugin would accept regexes but it doesn't appear to. Maybe call it "get-filter", "get-entry" or even "get-one"?

— Reply to this email directly or view it on GitHub https://github.com/juju/plugins/pull/16#issuecomment-50288871.

Jorge Niedbalski R.

http://www.metaklass.org/

niedbalski commented 10 years ago

Leave it as get-filter