* [Qemu-devel] [PATCH 0/1] Make the help info more friendly in monitor
@ 2011-09-28 9:00 Wayne Xia
2011-09-28 9:16 ` Stefan Hajnoczi
0 siblings, 1 reply; 4+ messages in thread
From: Wayne Xia @ 2011-09-28 9:00 UTC (permalink / raw)
To: qemu-devel; +Cc: 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(-)
--
1.7.6
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH 0/1] Make the help info more friendly in monitor
2011-09-28 9:00 [Qemu-devel] [PATCH 0/1] Make the help info more friendly in monitor Wayne Xia
@ 2011-09-28 9:16 ` Stefan Hajnoczi
2011-10-04 13:55 ` Luiz Capitulino
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2011-09-28 9:16 UTC (permalink / raw)
To: Wayne Xia; +Cc: qemu-devel
On Wed, Sep 28, 2011 at 10:00 AM, Wayne Xia <xiawenc@linux.vnet.ibm.com> wrote:
> 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(-)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH 0/1] Make the help info more friendly in monitor
2011-09-28 9:16 ` Stefan Hajnoczi
@ 2011-10-04 13:55 ` Luiz Capitulino
2011-10-11 7:19 ` Wayne Xia
0 siblings, 1 reply; 4+ messages in thread
From: Luiz Capitulino @ 2011-10-04 13:55 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Wayne Xia, qemu-devel
On Wed, 28 Sep 2011 10:16:19 +0100
Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Wed, Sep 28, 2011 at 10:00 AM, Wayne Xia <xiawenc@linux.vnet.ibm.com> wrote:
> > 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(-)
>
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH 0/1] Make the help info more friendly in monitor
2011-10-04 13:55 ` Luiz Capitulino
@ 2011-10-11 7:19 ` Wayne Xia
0 siblings, 0 replies; 4+ messages in thread
From: Wayne Xia @ 2011-10-11 7:19 UTC (permalink / raw)
To: qemu-devel
于 2011-10-4 21:55, Luiz Capitulino 写道:
> On Wed, 28 Sep 2011 10:16:19 +0100
> Stefan Hajnoczi<stefanha@gmail.com> wrote:
>
>> On Wed, Sep 28, 2011 at 10:00 AM, Wayne Xia<xiawenc@linux.vnet.ibm.com> wrote:
>>> 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(-)
>>
>> 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.
--
Best Regards
Wayne Xia
mail:xiawenc@linux.vnet.ibm.com
tel:86-010-82450803
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-11 7:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-28 9:00 [Qemu-devel] [PATCH 0/1] Make the help info more friendly in monitor Wayne Xia
2011-09-28 9:16 ` Stefan Hajnoczi
2011-10-04 13:55 ` Luiz Capitulino
2011-10-11 7:19 ` Wayne Xia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).