From: "Dr. David Alan Gilbert" <[email protected]> Move the docs for the info subcommand from the separate hx into the top level file next to the 'info' command itself. That makes every command in the top level file have a RST section.
Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> --- hmp-commands-info.hx | 9 +-------- hmp-commands.hx | 27 +++++++++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index 74c741f80e..964eed004c 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -8,14 +8,7 @@ HXCOMM HXCOMM In this file, generally SRST fragments should have two extra HXCOMM spaces of indent, so that the documentation list item for "info foo" HXCOMM appears inside the documentation list item for the top level -HXCOMM "info" documentation entry. The exception is the first SRST -HXCOMM fragment that defines that top level entry. - -SRST -``info`` *subcommand* - Show various information about the system state. - -ERST +HXCOMM "info" documentation entry. { .name = "version", diff --git a/hmp-commands.hx b/hmp-commands.hx index 5cc4788f12..f4a6eeda93 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1814,16 +1814,6 @@ SRST command. ERST - { - .name = "info", - .args_type = "item:s?", - .params = "[subcommand]", - .help = "show various information about the system state", - .cmd = hmp_info_help, - .sub_table = hmp_info_cmds, - .flags = "p", - }, - #if defined(CONFIG_FDT) { .name = "dumpdtb", @@ -1867,3 +1857,20 @@ SRST List event channels in the guest ERST #endif + +HXCOMM *** MUST BE LAST ENTRY ** + { + .name = "info", + .args_type = "item:s?", + .params = "[subcommand]", + .help = "show various information about the system state", + .cmd = hmp_info_help, + .sub_table = hmp_info_cmds, + .flags = "p", + }, + +SRST +``info`` *subcommand* + Show various information about the system state. +ERST +HXCOMM *** MUST BE LAST ENTRY ** -- 2.52.0
