Pablo Iranzo Gómez wrote:
        AFAIK, the output looks like several arrays "[ blah, blah, blah]" you
can write a sed script or "tr" to convert that to something more
"readable", however, python is *very* *very* *very* easy, so trying to
import the func module and issuing commands tailored to your needs would
be quite easy.

        Regards
        Pablo


El jue, 19-06-2008 a las 20:49 +0200, Mathieu MILLET escribió:
Hi there,

At my job, some of the admin guys would like be tempting to use func but are 
pretty slowed down by the bad default output of usuable commands (but they like 
the func-inventory output) ...

Since I'm no python expert, to what command I could pipe to pretty print the 
output of for example the module list command ?

I se that func-inventory use the pprint function to have nice displays (mostly) 
in the inventory files. How could I pipe the output of the command to that 
function without having to write a whole script in python ? That beautifer 
script would be general enough for some of the func modules (process, mount, 
rpm, ....).

Thank you in advance for any answer,
Sincerely yours, Mathieu MILLET.

--
Mathieu MILLET
mailto:[EMAIL PROTECTED]

_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list
------------------------------------------------------------------------

_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

If you do "func '*' call --help" you should see some pretty print options.

Testing/patches/improvements welcome.

They should be done in Func, not in sed.

But seriously, Func is more about the API and what can be built with it -- scripts and otherwise. The command line is just the gateway drug and should not be the exclusive focus :)

BTW -- FudCON and Summit are going well and the Func talk was well attended and there were good questions. FuncWeb should be getting some additional love soon too. Awesome. I also talked to one person (hope he joins the list) who expressed interest in building a TUI for func on top of makkalot's self-describing-modules patches originally intended for FuncWeb. I think that would be rather slick.

--Michael


_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to