diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-11-22 11:39:49 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2019-11-29 05:34:52 -0500 |
commit | 79bf5010eda37c07f577414ae71ecb8f8c8714a2 (patch) | |
tree | cd2d631a0c42d7bbb4f1b2631be8d833071644da /completions/bash | |
parent | b4313b296a271097d26e481a0f03d22b9bab683b (diff) | |
download | podman-79bf5010eda37c07f577414ae71ecb8f8c8714a2.tar.gz podman-79bf5010eda37c07f577414ae71ecb8f8c8714a2.tar.bz2 podman-79bf5010eda37c07f577414ae71ecb8f8c8714a2.zip |
Add podman system reset command
This command will destroy all data created via podman.
It will remove containers, images, volumes, pods.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'completions/bash')
-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 6d145030f..5634a5d8c 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -1142,6 +1142,21 @@ _podman_container() { esac } +_podman_system_reset() { + local options_with_args=" + " + local boolean_options=" + -h + --help + --force + " + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + esac +} + _podman_system_df() { local options_with_args=" --format @@ -1193,6 +1208,7 @@ _podman_system() { df info prune + reset " __podman_subcommands "$subcommands" && return |