From 79bf5010eda37c07f577414ae71ecb8f8c8714a2 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 22 Nov 2019 11:39:49 -0500 Subject: 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 --- completions/bash/podman | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'completions/bash') 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 -- cgit v1.2.3-54-g00ecf