Improve documentation for podman-secret-inspect, closes #26362

Signed-off-by: Alessandro Grassi <alessandro@aggro.it>
This commit is contained in:
Alessandro Grassi
2025-06-12 14:22:56 +02:00
parent 1e53cacb08
commit 4a35cf00ec

View File

@ -38,7 +38,7 @@ Print usage statement.
#### **--pretty**
Print inspect output in human-readable format
Print inspect output in human-readable format. Ignores fields from **--format**.
#### **--showsecret**
@ -51,6 +51,12 @@ Inspect the secret mysecret.
$ podman secret inspect mysecret
```
Inspect the secret mysecret and print it in a human redable format instead of JSON, with the default fields.
```
$ podman secret inspect --pretty mysecret
```
Inspect the secret mysecret and display the Name and Labels field.
```
$ podman secret inspect --format "{{.Spec.Name}} {{.Spec.Labels}}" mysecret