monitor: support sub command in auto completion

Enterprise / Virtualization / QEMU - Wenchao Xia [linux.vnet.ibm.com] - 30 August 2013 06:41 UTC

This patch allows auto completion work normal for sub command case, "info block [DEVICE]" can auto complete now, by re-enter the completion function. In original code "info" is treated as a special case, now it is treated as a sub command group, global variable info_cmds is not used any more.

"help" command is still treated as a special case, since it is not a sub command group but want to auto complete command in root command table.

d903a77 monitor: support sub command in auto completion
monitor.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

Upstream: git.qemu.org


  • Share