cloudstack/tools/cli
Rohit Yadav 8f51c630bd CLOUDSTACK-545: Tabularize cloudmonkey's response using filter=<fields,> argument
- Adds new cloudmonkey config field, tabularize
- If tabularize is set to true, all the list of dict in response are printed as
  table
- The columns of the tables can be filtered using the filter= argument, for ex:
  list domains listall=true filter=id,name,path
- filter arg will take comma separated values, if they have space put them under
  quotes
- Empty filter argument will cause it to print the whole table
- Multiple fields with the same name will cause it to print the column again
- In case there is a typo in the field, that column is skipped. It takes an
  intersection of response dict keys and filter keys provided
- Uses opensource prettytable library to pretty print tabular data

TODOs:
- Handle recursive table printing for nested list of dicts
- Colorize table columns if community wants such a feature

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-20 16:33:08 -08:00
..
cloudmonkey CLOUDSTACK-545: Tabularize cloudmonkey's response using filter=<fields,> argument 2012-12-20 16:33:08 -08:00
pom.xml cli: add exec rule to compute precache on mvn compile 2012-11-19 05:28:24 +05:30
setup.py CLOUDSTACK-545: Tabularize cloudmonkey's response using filter=<fields,> argument 2012-12-20 16:33:08 -08:00