diff options
author | Peter Hunt <pehunt@redhat.com> | 2019-03-15 17:41:03 -0400 |
---|---|---|
committer | Peter Hunt <pehunt@redhat.com> | 2019-04-16 11:23:18 -0400 |
commit | 0b34b4a59cf090a47a2a13cc4814954c497b3d49 (patch) | |
tree | 22e5185775ae83766d6911dd6b3d6b8376a976e1 /completions/bash/podman | |
parent | a2e9626d92dedb182a500c3a0f04dcc0499a6d54 (diff) | |
download | podman-0b34b4a59cf090a47a2a13cc4814954c497b3d49.tar.gz podman-0b34b4a59cf090a47a2a13cc4814954c497b3d49.tar.bz2 podman-0b34b4a59cf090a47a2a13cc4814954c497b3d49.zip |
Add podman pod prune
podman system prune would leave pods be, and not prune them if they were stopped.
Fix this by adding a `podman pod prune` command that prunes stopped pods similarly to containers.
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'completions/bash/podman')
-rw-r--r-- | completions/bash/podman | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 3616c6ca1..dce23df2b 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -2740,6 +2740,22 @@ _podman_pod_ps() { __podman_pod_ps } +_podman_pod_prune() { + local options_with_args=" + " + + local boolean_options=" + -f + -h + --help + " + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + esac +} + _podman_pod_restart() { local options_with_args=" " |