[pve-devel] [PATCH 0/3] CLI: support for sub-commands

Philip Abernethy p.abernethy at proxmox.com
Wed Oct 4 16:19:15 CEST 2017


This patch (1/3 is the effective part) adds support for sub-commands in
the form of `pveum user add <userid>`. It correctly parses the current
command format and, to my knowledge, generates identical help texts,
man-pages and html docs.
So it should be applicable even without any command line tools offering
sub-commands.

Philip Abernethy (3):
  cli: prepare CLIHandler for handling sub-commands
  cli: code cleanup
  cli: whitespace cleanup

 src/PVE/CLIHandler.pm | 271 ++++++++++++++++++++++++++++++--------------------
 1 file changed, 163 insertions(+), 108 deletions(-)

-- 
2.11.0




More information about the pve-devel mailing list