From c7537d19390ebffb53672d16d31f4d7eaf5c9e9f Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 15 Feb 2024 13:20:32 -0700 Subject: [PATCH] man-page xref: make nested-structure warnings fatal Followup to: - #21060, where I added new struct checks (but did not make them fatal) - #21534, which added per-interface stats and a .Network field, but its documentation was slightly off Signed-off-by: Ed Santiago --- docs/source/markdown/podman-stats.1.md.in | 2 +- hack/xref-helpmsgs-manpages | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/markdown/podman-stats.1.md.in b/docs/source/markdown/podman-stats.1.md.in index f44a7f8ef5..8bb3a3557f 100644 --- a/docs/source/markdown/podman-stats.1.md.in +++ b/docs/source/markdown/podman-stats.1.md.in @@ -51,7 +51,7 @@ Valid placeholders for the Go template are listed below: | .MemUsageBytes | Memory usage (IEC) | | .Name | Container Name | | .NetIO | Network IO | -| .Network | Network I/O, separated by network interface | +| .Network ... | Network I/O, separated by network interface | | .PerCPU | CPU time consumed by all tasks [1] | | .PIDs | Number of PIDs | | .PIDS | Number of PIDs (yes, we know this is a dup) | diff --git a/hack/xref-helpmsgs-manpages b/hack/xref-helpmsgs-manpages index f06c29db35..6cd1d1cd9b 100755 --- a/hack/xref-helpmsgs-manpages +++ b/hack/xref-helpmsgs-manpages @@ -256,6 +256,7 @@ sub xref_by_help { } warn "$ME: 'podman @subcommand {{$k' $msg\n"; + ++$Errs; } } }