mknx/smarthome — pull request #44 by ohinckel (2013-11-13 11:16:26+00:00)
Title: CLI Plugin: List items matching a pattern

Just an idea: I have a lot of items and the `la` command output is really large and i need to search for the items I currently want to see, which is not handy.

I implemented a item matching mechanism using the `sh.match_item()` function instead of `sh.return_item()` for:
* `ls` - will list all matching items, e.g. `ls groundfloor.*.light`
* `update`, `up` - will update all matching items to value, e.g. `up groundfloor.*.light = True`

Maybe we should use a new keyword for the update command, since this actually change values and it could happen that someone change a lot of values accidentally by typing a `*` somewhere in the path.

Since every time the match_item() function is used, this patch will slightly slow down the mentioned commands. I did not a benchmark on this, since the CLI interface is mainly used for developers, debugging or testing purpose.

The documentation update is not included in this patch - I can do this if we want to support this feature.