[pbs-devel] [PATCH proxmox 1/2] router: docs: add horizontal line before nested command docs

Dietmar Maurer dietmar at proxmox.com
Fri Feb 21 07:50:16 CET 2025


Lines before commanmd groups are missing (i.e. see proxmox-backup-client command
syntax docs)

Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 proxmox-router/src/cli/format.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/proxmox-router/src/cli/format.rs b/proxmox-router/src/cli/format.rs
index 84936336..95448aa9 100644
--- a/proxmox-router/src/cli/format.rs
+++ b/proxmox-router/src/cli/format.rs
@@ -415,6 +415,9 @@ fn generate_nested_usage_do<'cli>(
                 ));
             }
             CommandLineInterface::Nested(map) => {
+                if format == DocumentationFormat::ReST {
+                    usage.push_str("\n----\n\n");
+                }
                 usage.push_str(&generate_nested_usage_do(state, &new_prefix, map, format));
             }
         }
-- 
2.39.5




More information about the pbs-devel mailing list