spiegel_podman/cmd/podman/common
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
..
completion.go Improve the shell completion api 2020-11-16 16:14:42 +01:00
create.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
create_opts.go network aliases for container creation 2020-11-09 15:08:58 -06:00
createparse.go --rm option shold conflicts with --restart 2020-10-02 21:57:37 +08:00
default.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
diffChanges.go Refactor podman to use c/common/pkg/report 2020-10-21 08:16:52 -07:00
netflags.go Add shell completion with cobra 2020-11-12 11:38:31 +01:00
ports.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
specgen.go network aliases for container creation 2020-11-09 15:08:58 -06:00
util.go Ports given only by number should have random host port 2020-10-08 09:16:10 -04:00
volumes.go Add better support for unbindable volume mounts 2020-11-02 07:19:12 -05:00