spiegel_podman/cmd/podman/containers
Paul Holzinger cf4967de4d Improve the shell completion api
One main advantage of the new shell completion logic is that
we can easly parse flags and adjust based on the given flags
the suggestions. For example some commands accept the
`--latest` flag only if no arguments are given.

This commit implements this logic in a simple maintainable way
since it reuses the already existing `Args` function in the
cmd struct.

I also refactored the `getXXX` function to match based on the
namei/id which could speed up the shell completion with many
containers, images, etc...

I also added the degraded status to the valid pod status
filters which was implemented in #8081.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-11-16 16:14:42 +01:00
..
attach.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
checkpoint.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
cleanup.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
commit.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
container.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
cp.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
create.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
diff.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
exec.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
exists.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
export.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
init.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
inspect.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
kill.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
list.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
logs.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
mount.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
pause.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
port.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
prune.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
ps.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
restart.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
restore.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
rm.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
run.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
runlabel.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
start.go Improve the shell completion api 2020-11-16 16:14:42 +01:00
stats.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
stop.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
top.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
unmount.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
unpause.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
utils.go Podman V2 birth 2020-04-16 15:53:58 -05:00
wait.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00