]> git.proxmox.com Git - pve-common.git/commit - src/PVE/CLIHandler.pm
add print_api_list, adapt handle_cmd
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 18 Jun 2018 08:18:02 +0000 (10:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Jun 2018 09:24:03 +0000 (11:24 +0200)
commita604bf22142e9c71a2f651ddb15119fe453b70d5
treef2051fa66daff25558893aefeffecf17dfa9a595
parent8042c2cc6264a56683c96862cb831d9dde0d24c6
add print_api_list, adapt handle_cmd

print_api_list takes an array of columns to print, the data, and the returns
definitions of the API, and prints the data by using print_text_table.

handle_cmd and handle_simple_cmd call the output sub with the returns definitons.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PVE/CLIHandler.pm