diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-05-16 16:50:07 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-05-18 18:28:11 +0200 |
commit | ecd6edb19186b43c064a09b0a824732ff5f5242e (patch) | |
tree | 85c259bee9f2cb08179ae1671b52b9383fe6e763 /docs | |
parent | 11ff5ffd3b0acba02991b0879a1b8493ea0f3bc9 (diff) | |
download | podman-ecd6edb19186b43c064a09b0a824732ff5f5242e.tar.gz podman-ecd6edb19186b43c064a09b0a824732ff5f5242e.tar.bz2 podman-ecd6edb19186b43c064a09b0a824732ff5f5242e.zip |
shell completion --format: fix embedded struct handling
When a struct is embeeded it is possible that we end up with same names
but different types, this results in incorrect completions. The go
template logic always preferes the actual field/method name before the
one from the embedded one. Thefore the completion logic should do the
same. First get all method/fields names from the struct and then only
add the field names from the embedded struct when they are not already
present in the list.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions