diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-02-05 10:41:55 -0800 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2019-02-05 10:41:55 -0800 |
commit | 74d984e0560b2cb421287395b025687e3aabe118 (patch) | |
tree | 97de4a88cb4c201b3a69b15767aa79c55c3a9b6e /completions | |
parent | 650e242aa90fcb3f161da6e97921c606d3083215 (diff) | |
download | podman-74d984e0560b2cb421287395b025687e3aabe118.tar.gz podman-74d984e0560b2cb421287395b025687e3aabe118.tar.bz2 podman-74d984e0560b2cb421287395b025687e3aabe118.zip |
Add podman system prune and info commands
We are missing the equivalence of the docker system commands
This patch set adds `podman system prune`
and `podman system info`
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'completions')
-rw-r--r-- | completions/bash/podman | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index e0de4586c..9df87aef4 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -979,6 +979,51 @@ _podman_container() { esac } +_podman_system_info() { + _podman_info +} + +_podman_system_prune() { + local options_with_args=" + " + + local boolean_options=" + -a + --all + -f + --force + -h + --help + --volumes + " + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + esac +} + +_podman_system() { + local boolean_options=" + --help + -h + " + subcommands=" + info + prune + " + __podman_subcommands "$subcommands" && return + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + ;; + *) + COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) ) + ;; + esac +} + _podman_commit() { local options_with_args=" --author @@ -2482,6 +2527,11 @@ _podman_container_prune() { -h --help " + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + esac } _podman_container_exists() { |