[pve-devel] [PATCH common 0/2] add print_text_table

Stoiko Ivanov s.ivanov at proxmox.com
Tue May 29 16:30:10 CEST 2018

* patcheset is needed for the related patchset for pve-access-control
* it adds 2 subs to CLIHandler (and changes the signature of 2 subs in a
  backwards compatible manner)
* print_text_table can be used to print the output of the index-routes of the
  API in a generic manner (it can rely on the returns definition of the API to 
  get the column headers and default values)

Stoiko Ivanov (2):
  add schema definition as return to cli_handler
  add print_text_table, print_entry to CLIHandler

 src/PVE/CLIHandler.pm  | 54 ++++++++++++++++++++++++++++++++++++++++++++++----
 src/PVE/RESTHandler.pm |  2 +-
 2 files changed, 51 insertions(+), 5 deletions(-)


More information about the pve-devel mailing list