mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
man page --format xref: tighten the autocompletion check
Followup to #17486: stricter checks on --format. * If a subcommand offers autocompletion for templates, it must also offer a '--format json' option. * If a subcommand has a --format option that DOES NOT offer autocompletion for templates, it must be listed in a hardcoded grandparented-in table of commands where that's not applicable. (Mostly commands like build, commit, save, where "format" is used in the context of "oci/docker"). Only likely to trigger on PRs which add new subcommands, and is intended to catch oversights. Also, test for alphanumeric order in man page tables. Sort all existing tables. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -27,13 +27,13 @@ Valid placeholders for the Go template are listed below:
|
||||
|
||||
| **Placeholder** | **Description** |
|
||||
|------------------------|---------------------------------------------------------------------------|
|
||||
| .ID | Image ID |
|
||||
| .Comment | Comment for the layer |
|
||||
| .Created | if --human, time elapsed since creation, otherwise time stamp of creation |
|
||||
| .CreatedAt | Time when the image layer was created |
|
||||
| .CreatedBy | Command used to create the layer |
|
||||
| .CreatedSince | Elapsed time since the image layer was created |
|
||||
| .ID | Image ID |
|
||||
| .Size | Size of layer on disk |
|
||||
| .Comment | Comment for the layer |
|
||||
| .Tags | Image tags |
|
||||
|
||||
#### **--help**, **-h**
|
||||
|
@ -38,16 +38,16 @@ Valid placeholders for the Go template are listed below:
|
||||
| .Created | Time since VM creation |
|
||||
| .Default | Is default machine |
|
||||
| .DiskSize | Disk size of machine |
|
||||
| .IdentityPath | Path to ssh identity file |
|
||||
| .LastUp | Time machine was last up |
|
||||
| .LastUp | Time since the VM was last run |
|
||||
| .Memory | Allocated memory for machine |
|
||||
| .Name | VM name |
|
||||
| .Port | SSH Port to use to connect to VM|
|
||||
| .RemoteUsername | VM Username for rootless Podman |
|
||||
| .Running | Is machine running |
|
||||
| .Stream | Stream name |
|
||||
| .VMType | VM type |
|
||||
| .Port | SSH Port to use to connect to VM|
|
||||
| .RemoteUsername | VM Username for rootless Podman |
|
||||
| .IdentityPath | Path to ssh identity file |
|
||||
|
||||
#### **--help**
|
||||
|
||||
|
@ -16,18 +16,18 @@ Pretty-print networks to JSON or using a Go template.
|
||||
|
||||
| **Placeholder** | **Description** |
|
||||
|--------------------|-------------------------------------------|
|
||||
| .ID | Network ID |
|
||||
| .Name | Network name |
|
||||
| .Driver | Network driver |
|
||||
| .Labels | Network labels |
|
||||
| .Options | Network options |
|
||||
| .IPAMOptions | Network ipam options |
|
||||
| .Created | Timestamp when the network was created |
|
||||
| .Internal | Network is internal (boolean) |
|
||||
| .IPv6Enabled | Network has ipv6 subnet (boolean) |
|
||||
| .DNSEnabled | Network has dns enabled (boolean) |
|
||||
| .Driver | Network driver |
|
||||
| .ID | Network ID |
|
||||
| .Internal | Network is internal (boolean) |
|
||||
| .IPAMOptions | Network ipam options |
|
||||
| .IPv6Enabled | Network has ipv6 subnet (boolean) |
|
||||
| .Labels | Network labels |
|
||||
| .Name | Network name |
|
||||
| .NetworkDNSServers | Array of DNS servers used in this network |
|
||||
| .NetworkInterface | Name of the network interface on the host |
|
||||
| .Options | Network options |
|
||||
| .Subnets | List of subnets on this network |
|
||||
|
||||
## EXAMPLE
|
||||
|
@ -44,18 +44,18 @@ Valid placeholders for the Go template are listed below:
|
||||
|
||||
| **Placeholder** | **Description** |
|
||||
|--------------------|-------------------------------------------|
|
||||
| .ID | Network ID |
|
||||
| .Name | Network name |
|
||||
| .Driver | Network driver |
|
||||
| .Labels | Network labels |
|
||||
| .Options | Network options |
|
||||
| .IPAMOptions | Network ipam options |
|
||||
| .Created | Timestamp when the network was created |
|
||||
| .Internal | Network is internal (boolean) |
|
||||
| .IPv6Enabled | Network has ipv6 subnet (boolean) |
|
||||
| .DNSEnabled | Network has dns enabled (boolean) |
|
||||
| .Driver | Network driver |
|
||||
| .ID | Network ID |
|
||||
| .Internal | Network is internal (boolean) |
|
||||
| .IPAMOptions | Network ipam options |
|
||||
| .IPv6Enabled | Network has ipv6 subnet (boolean) |
|
||||
| .Labels | Network labels |
|
||||
| .Name | Network name |
|
||||
| .NetworkDNSServers | Array of DNS servers used in this network |
|
||||
| .NetworkInterface | Name of the network interface on the host |
|
||||
| .Options | Network options |
|
||||
| .Subnets | List of subnets on this network |
|
||||
|
||||
#### **--no-trunc**
|
||||
|
@ -55,12 +55,12 @@ Valid placeholders for the Go template are listed below:
|
||||
|
||||
| **Placeholder** | **Description** |
|
||||
| --------------- | ---------------------------- |
|
||||
| .Automated | "[OK]" if image is automated |
|
||||
| .Description | Image description |
|
||||
| .Index | Registry |
|
||||
| .Name | Image name |
|
||||
| .Description | Image description |
|
||||
| .Stars | Star count of image |
|
||||
| .Official | "[OK]" if image is official |
|
||||
| .Automated | "[OK]" if image is automated |
|
||||
| .Stars | Star count of image |
|
||||
| .Tag | Repository tag |
|
||||
|
||||
Note: use .Tag only if the --list-tags is set.
|
||||
|
@ -20,10 +20,10 @@ Valid placeholders for the Go template listed below:
|
||||
|
||||
| **Placeholder** | **Description** |
|
||||
| --------------- | ----------------------------------------------------------------------------- |
|
||||
| .Name | Connection Name/Identifier |
|
||||
| .Identity | Path to file containing SSH identity |
|
||||
| .URI | URI to podman service. Valid schemes are ssh://[user@]*host*[:port]*Unix domain socket*[?secure=True], unix://*Unix domain socket*, and tcp://localhost[:*port*] |
|
||||
| .Default | Indicates whether connection is the default |
|
||||
| .Identity | Path to file containing SSH identity |
|
||||
| .Name | Connection Name/Identifier |
|
||||
| .URI | URI to podman service. Valid schemes are ssh://[user@]*host*[:port]*Unix domain socket*[?secure=True], unix://*Unix domain socket*, and tcp://localhost[:*port*] |
|
||||
|
||||
#### **--quiet**, **-q**
|
||||
|
||||
|
Reference in New Issue
Block a user