mirror of
https://github.com/containers/podman.git
synced 2026-11-08 17:12:52 -05:00
Some commands inside existing man-page code fences were missing the $ or # prompt described in MANPAGE_SYNTAX.md. Added the missing prompts and documented how the new check works. Added a check to xref-helpmsgs-manpages for fenced blocks in EXAMPLE and EXAMPLES sections. It checks unlabelled blocks and blocks labelled sh, bash, shell, or console. After skipping blank lines and ### comments, it reports an error if the first remaining line starts with bare podman or sudo podman. The error includes the file and line number. Only that first remaining line is checked, since later lines may contain command output. Blocks labelled for Windows shells are excluded from the Unix prompt check. Added powershell labels to the existing Hyper-V example fences. Added regression tests and included them in the tooling self-tests. These tests do not need a built Podman binary or generated docs. Also fixed the existing volume-prune test, which still looked for driver and opt rows that were removed from the man page. Using the existing label and until rows restores both checks for a misplaced negated filter and a duplicate filter entry. Fixes: https://github.com/podman-container-tools/podman/issues/26428 Signed-off-by: Garv Changrani <154041471+Garvity@users.noreply.github.com>