spiegel_podman/cmd
Paul Holzinger 3d8a1f9173
shell completion --format: support maps and functions
Currently we only support structs in a template string like this:
`{{.var1.test.` -> this meams that test must be a struct field on var1.

Now with this var1 and test could also be either a map or function which
returns a struct.

A actual example:
`podman container inspect  --format {{.NetworkSettings.Networks.netname.`
Now we can complete the struct fileds after netname. Note that this
cannot complete map keys since they are empty by default, so it is
impossible to get them in the completion logic.

Also this fixes a panic with embeeded nil structs
Fixes #14223

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-05-18 18:28:22 +02:00
..
podman shell completion --format: support maps and functions 2022-05-18 18:28:22 +02:00
podman-mac-helper Run codespell to cleanup typos 2022-03-25 15:34:41 -04:00
rootlessport Use simulated dual-stack binds when using WSL 2022-04-29 17:03:45 -05:00
winpath Add podman rm --depend 2022-01-11 14:33:54 -05:00