Between Red Hat Summit, FUDCon, and various discussions, it's occurred
to me that lots of people
are using the 'func' command line in applications instead of the python
api. This is particular common
in non python apps of course, where the api isn't useable.
The problem with the current commandline client is that it is kind of
limited usefulness in this
useage. Parsing output seems to be an issue. Current versions support
the use of the "--xmlrpc",
"--json", and "--pickle" output modes, which could theoretically be used
to make this a little easier.
It wouldn't be hard to add other ways to marshall more complex data
either, yaml, for example.
Or perhaps a mode that would be easily parsed with commandline tools
(csv? BAR=foo shellvar style?)
Any ideas?
The other side to the problem is the input. At the moment, the "call"
support only supports passing string
args on the command line. There are a couple of ways to make that more
flexible that come to mind. One
is to add some support for specifing types. Not sure what that would
look like at the moment.
Another idea that I like, is the ability to read marshalled data in from
stdin. It would be pretty easy to
support xmlrpc style data this way, or json, or other types. It might
make it a little easier to glue support
for other languages in this way, and not be constrained by what can be
passed into the command line
A wrapper api could use native support for xmlrpc/json/yaml/etc to build
up the data structures, and then
feed then via stdin to func.
Not sure if a commandline option for this would be preffered, or just
make it default to doing this if stdin
is there.
Any suggestions?
Adrian
_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list