mirror of https://github.com/apache/cloudstack.git
- 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> |
||
|---|---|---|
| .. | ||
| apidoc | ||
| bugs-wiki | ||
| build | ||
| cli | ||
| devcloud | ||
| git | ||
| marvin | ||
| waf | ||
| whisker | ||