summaryrefslogtreecommitdiff
path: root/cmd/podman/syslog_unsupported.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-05-16 20:38:45 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-05-18 18:28:22 +0200
commit3d8a1f91731b7935ae5239023d588a028dcd51e8 (patch)
tree3e6b1a8fac6fa63d292df2980ea44470b8205d37 /cmd/podman/syslog_unsupported.go
parentecd6edb19186b43c064a09b0a824732ff5f5242e (diff)
downloadpodman-3d8a1f91731b7935ae5239023d588a028dcd51e8.tar.gz
podman-3d8a1f91731b7935ae5239023d588a028dcd51e8.tar.bz2
podman-3d8a1f91731b7935ae5239023d588a028dcd51e8.zip
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>
Diffstat (limited to 'cmd/podman/syslog_unsupported.go')
0 files changed, 0 insertions, 0 deletions