Skip to contentSkip to conversation

Make the help info more friendly in monitor

PATCH In review Wayne Xia 3 participants 4 messages Sep 28, 2011 – Oct 11, 2011

lore
Share & tools
lore

Wayne Xia

author
#0 lore raw

cover Make the help info more friendly in monitor

During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.

For eg:
(qemu)help
acl_add
acl_policy
acl_remove
acl_reset
acl_show
balloon
block_passwd
...
the command list is sorted.

Wayne Xia (1):
Sort the help info shown in monitor

 monitor.c |   97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 93 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.6
#1 lore raw
Quoted 16 lines · Wayne Xia

During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.

For eg:
(qemu)help
acl_add
acl_policy
acl_remove
acl_reset
acl_show
balloon
block_passwd
...
the command list is sorted.

Quoted 5 lines

Wayne Xia (1):
 Sort the help info shown in monitor

 monitor.c |   97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--

 1 files changed, 93 insertions(+), 4 deletions(-)

This is a nice idea. We could keep hmp/qmp-commands.hx in sorted order but that prevents us from keeping related commands together in those files (and the generated documentation?). So sorting at run-time makes sense.

Stefan

#2 lore raw
Quoted 20 lines · On Wed, 28 Sep 2011 10:16:19 +0100 Stefan Hajnoczi <[email protected]> wrote:
Quoted 19 lines · Wayne Xia

During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.

For eg:
(qemu)help
acl_add
acl_policy
acl_remove
acl_reset
acl_show
balloon
block_passwd
...
the command list is sorted.

Wayne Xia (1):
 Sort the help info shown in monitor

Quoted 7 lines
Quoted 2 lines

 monitor.c |   97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--

 1 files changed, 93 insertions(+), 4 deletions(-)

This is a nice idea. We could keep hmp/qmp-commands.hx in sorted order but that prevents us from keeping related commands together in those files (and the generated documentation?). So sorting at run-time makes sense.

The info help command reads from hmp-commands.hx and the info_cmds array, I would prefer to get those sorted.

author
#3 lore raw
Quoted 26 lines · Luiz Capitulino
Quoted 23 lines · On Wed, 28 Sep 2011 10:16:19 +0100 Stefan Hajnoczi<[email protected]> wrote:
Quoted 21 lines · Wayne Xia

During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.

For eg:
(qemu)help
acl_add
acl_policy
acl_remove
acl_reset
acl_show
balloon
block_passwd
...
the command list is sorted.

Wayne Xia (1):
Sort the help info shown in monitor

  monitor.c |   97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
  1 files changed, 93 insertions(+), 4 deletions(-)
Quoted 8 lines
Quoted 4 lines

This is a nice idea. We could keep hmp/qmp-commands.hx in sorted order but that prevents us from keeping related commands together in those files (and the generated documentation?). So sorting at run-time makes sense.

The info help command reads from hmp-commands.hx and the info_cmds array, I would prefer to get those sorted.

thanks, sorting info_cmds array seems more reasonable for that related things would be kept here in one place not another queue, would change in next patch.

Signature · 5 lines
Best Regards

Wayne Xia
mail:[email protected]
tel:86-010-82450803