diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-06 23:03:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-06 23:03:21 +0100 |
commit | c7350721bff99fb4455a0ddb51e7155e04a9283d (patch) | |
tree | 9c5dd9778e8cdd8fc9f0b5880c3fdb7f9a615d61 /completions/bash/podman | |
parent | 72fcfb7e8624a4f61761d10f3bd80d9c6da3e31e (diff) | |
parent | 0830bb9035a9ee35810e358a32b8011da2dc1be6 (diff) | |
download | podman-c7350721bff99fb4455a0ddb51e7155e04a9283d.tar.gz podman-c7350721bff99fb4455a0ddb51e7155e04a9283d.tar.bz2 podman-c7350721bff99fb4455a0ddb51e7155e04a9283d.zip |
Merge pull request #2252 from rhatdan/system
Add podman system prune and info commands
Diffstat (limited to 'completions/bash/podman')
-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() { |