mirror of
https://github.com/containers/podman.git
synced 2025-05-20 00:27:03 +08:00
Docs: consistency between man / --help
New functionality in hack/man-page-checker: start cross- referencing the man page 'Synopsis' line against the output of 'podman foo --help'. This is part 1, flag/option consistency. Part 2 (arg consistency) is too big and will have to wait for later. flag/option consistency means: if 'podman foo --help' includes the string '[flags]' in the Usage message, make sure the man page includes '[*options*]' in its Synopsis line, and vice-versa. This found several inconsistencies, which I've fixed. While doing this I realized that Cobra automatically includes a 'Flags:' subsection in its --help output for all subcommands that have defined flags. This is great - it lets us cross-check against the usage synopsis, and make sure that '[flags]' is present or absent as needed, without fear of human screwups. If a flag-less subcommand ever gets extended with flags, but the developer forgets to add '[flags]' and remove DisableFlagsInUseLine, we now have a test that will catch that. (This, too, caught two instances which I fixed). I don't actually know if the new man-page-checker functionality will work in CI: I vaguely recall that it might run before 'make podman' does; and also vaguely recall that some steps were taken to remedy that. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
podman-auto-update - Auto update containers according to their auto-update policy
|
||||
|
||||
## SYNOPSIS
|
||||
**podman auto-update**
|
||||
**podman auto-update** [*options*]
|
||||
|
||||
## DESCRIPTION
|
||||
`podman auto-update` looks up containers with a specified "io.containers.autoupdate" label (i.e., the auto-update policy).
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman-container-exists - Check if a container exists in local storage
|
||||
|
||||
## SYNOPSIS
|
||||
**podman container exists** [*options*] *container*
|
||||
**podman container exists** *container*
|
||||
|
||||
## DESCRIPTION
|
||||
**podman container exists** checks if a container exists in local storage. The **ID** or **Name**
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-healthcheck\-run - Run a container healthcheck
|
||||
|
||||
## SYNOPSIS
|
||||
**podman healthcheck run** [*options*] *container*
|
||||
**podman healthcheck run** *container*
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman-image-exists - Check if an image exists in local storage
|
||||
|
||||
## SYNOPSIS
|
||||
**podman image exists** [*options*] *image*
|
||||
**podman image exists** *image*
|
||||
|
||||
## DESCRIPTION
|
||||
**podman image exists** checks if an image exists in local storage. The **ID** or **Name**
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-manifest\-add - Add an image to a manifest list or image index
|
||||
|
||||
## SYNOPSIS
|
||||
**podman manifest add** *listnameorindexname* *imagename*
|
||||
**podman manifest add** [*options*] *listnameorindexname* *imagename*
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-manifest\-annotate - Add or update information about an entry in a manifest list or image index
|
||||
|
||||
## SYNOPSIS
|
||||
**podman manifest annotate** [options...] *listnameorindexname* *imagemanifestdigest*
|
||||
**podman manifest annotate** [*options*] *listnameorindexname* *imagemanifestdigest*
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-manifest\-push - Push a manifest list or image index to a registry
|
||||
|
||||
## SYNOPSIS
|
||||
**podman manifest push** [options...] *listnameorindexname* *transport:details*
|
||||
**podman manifest push** [*options*] *listnameorindexname* *transport:details*
|
||||
|
||||
## DESCRIPTION
|
||||
Pushes a manifest list or image index to a registry.
|
||||
|
@ -4,9 +4,9 @@
|
||||
podman\-mount - Mount a working container's root filesystem
|
||||
|
||||
## SYNOPSIS
|
||||
**podman mount** [*container* ...]
|
||||
**podman mount** [*options*] [*container* ...]
|
||||
|
||||
**podman container mount** [*container* ...]
|
||||
**podman container mount** [*options*] [*container* ...]
|
||||
|
||||
## DESCRIPTION
|
||||
Mounts the specified containers' root file system in a location which can be
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-network\-inspect - Displays the raw CNI network configuration for one or more networks
|
||||
|
||||
## SYNOPSIS
|
||||
**podman network inspect** [*network* ...]
|
||||
**podman network inspect** [*options*] [*network* ...]
|
||||
|
||||
## DESCRIPTION
|
||||
Display the raw (JSON format) network configuration. This command is not available for rootless users.
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-network\-rm - Remove one or more CNI networks
|
||||
|
||||
## SYNOPSIS
|
||||
**podman network rm** [*network...*]
|
||||
**podman network rm** [*options*] [*network...*]
|
||||
|
||||
## DESCRIPTION
|
||||
Delete one or more Podman networks.
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman-pod-prune - Remove all stopped pods and their containers
|
||||
|
||||
## SYNOPSIS
|
||||
**podman pod prune**
|
||||
**podman pod prune** [*options*]
|
||||
|
||||
## DESCRIPTION
|
||||
**podman pod prune** removes all stopped pods and their containers from local storage.
|
||||
|
@ -4,9 +4,9 @@
|
||||
podman\-rmi - Removes one or more locally stored images
|
||||
|
||||
## SYNOPSIS
|
||||
**podman rmi** *image* [...]
|
||||
**podman rmi** [*options*] *image* [...]
|
||||
|
||||
**podman image rm** *image* [...]
|
||||
**podman image rm** [*options*] *image* [...]
|
||||
|
||||
## DESCRIPTION
|
||||
Removes one or more locally stored images.
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-system\-migrate - Migrate existing containers to a new podman version
|
||||
|
||||
## SYNOPSIS
|
||||
**podman system migrate**
|
||||
**podman system migrate** [*options*]
|
||||
|
||||
## DESCRIPTION
|
||||
**podman system migrate** migrates containers to the latest podman version.
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-system\-reset - Reset storage back to initial state
|
||||
|
||||
## SYNOPSIS
|
||||
**podman system reset**
|
||||
**podman system reset** [*options*]
|
||||
|
||||
## DESCRIPTION
|
||||
**podman system reset** removes all pods, containers, images and volumes.
|
||||
|
@ -4,13 +4,13 @@
|
||||
podman\-umount - Unmount a working container's root filesystem
|
||||
|
||||
## SYNOPSIS
|
||||
**podman umount** *container* [...]
|
||||
**podman umount** [*options*] *container* [...]
|
||||
|
||||
**podman container umount** *container* [...]
|
||||
**podman container umount** [*options*] *container* [...]
|
||||
|
||||
**podman container unmount** *container* [...]
|
||||
**podman container unmount** [*options*] *container* [...]
|
||||
|
||||
**podman unmount** *container* [...]
|
||||
**podman unmount** [*options*] *container* [...]
|
||||
|
||||
## DESCRIPTION
|
||||
Unmounts the specified containers' root file system, if no other processes
|
||||
|
@ -4,7 +4,7 @@
|
||||
podman\-unshare - Run a command inside of a modified user namespace
|
||||
|
||||
## SYNOPSIS
|
||||
**podman unshare** [*options*] [*--*] [*command*]
|
||||
**podman unshare** [*--*] [*command*]
|
||||
|
||||
## DESCRIPTION
|
||||
Launches a process (by default, *$SHELL*) in a new user namespace. The user
|
||||
|
@ -4,9 +4,9 @@
|
||||
podman\-untag - Removes one or more names from a locally-stored image
|
||||
|
||||
## SYNOPSIS
|
||||
**podman untag** [*options*] *image* [*name*[:*tag*]...]
|
||||
**podman untag** *image* [*name*[:*tag*]...]
|
||||
|
||||
**podman image untag** [*options*] *image* [*name*[:*tag*]...]
|
||||
**podman image untag** *image* [*name*[:*tag*]...]
|
||||
|
||||
## DESCRIPTION
|
||||
Remove one or more names from an image in the local storage. The image can be referred to by ID or reference. If a no name is specified, all names are removed the image. If a specified name is a short name and does not include a registry `localhost/` will be prefixed (e.g., `fedora` -> `localhost/fedora`). If a specified name does not include a tag `:latest` will be appended (e.g., `localhost/fedora` -> `localhost/fedora:latest`).
|
||||
|
Reference in New Issue
Block a user