Incubaid / arakoon

A consistent distributed key-value store
http://arakoon.org
Apache License 2.0
84 stars 17 forks source link

fix client_lib + add --user-function to command line #521

Closed domsj closed 10 years ago

toolslive commented 10 years ago

ok.

NicolasT commented 10 years ago

Consider changing how --user-function works, by not taking an argument to the action, but reading stdin and use that as argument?

domsj commented 10 years ago

Right now it is indeed not suited for arbitrary binary params.

I've changed passing in of the value to arakoon --user-function bla to pass None to the user function to which you can optionally add -value foo to pass in Some "foo".

If we should later have the need for passing in binary params like this we could add another command line flag e.g. -value-from-stdin or -value-from-file <filename>.