basho / clique

CLI Framework for Erlang
Apache License 2.0
147 stars 49 forks source link

Add keyspec wildcard support #60

Closed nickelization closed 9 years ago

nickelization commented 9 years ago

This PR allows you to specify '_' in the place of a normal keyspec when registering a command, and all key/value pairs will be passed into the command callback as a list of type [{string(), string()}]

paegun commented 9 years ago

+1 deac326f6a66c113ec5c117c025d636056fd60eb The _ (pattern match any) wildcard for keys is great and not confusing when compared to the * (glob) wildcard used for commands. It's a minor shame we don't have tests for this repo. That said, I don't think adding tests for this key wildcard feature is necessary at the moment. Similarly, documentation changes for this feature is good where it's at.

nickelization commented 9 years ago

@borshop merge