]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hmp*hx: Move info docs
authorDr. David Alan Gilbert <dave@treblig.org>
Mon, 4 May 2026 17:49:11 +0000 (18:49 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 5 May 2026 11:53:02 +0000 (13:53 +0200)
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 <dave@treblig.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20260504174914.122607-2-dave@treblig.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hmp-commands-info.hx
hmp-commands.hx

index 74c741f80e24375d4f959310881b9ac6ff01bacd..964eed004c02e02489b856a503fadfa2f70d5d84 100644 (file)
@@ -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",
index 5cc4788f12dc9cdb97b6c4626622148390d0e7c3..f4a6eeda931cbd1ac4fc4b475524c5dc88f9de62 100644 (file)
@@ -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 **