diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-16 17:33:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 17:33:31 +0200 |
commit | 704cc582ac37fbbb7c8241a1cc09540f4976ed12 (patch) | |
tree | 57bb887e113b307a39865eb38d2b733e01c59f1c /completions/bash | |
parent | 2d47f1ae5425faa6800606092e997bd565dc3a1c (diff) | |
parent | 6220ef1488d3e135c332c265fdb6a3c7b240b561 (diff) | |
download | podman-704cc582ac37fbbb7c8241a1cc09540f4976ed12.tar.gz podman-704cc582ac37fbbb7c8241a1cc09540f4976ed12.tar.bz2 podman-704cc582ac37fbbb7c8241a1cc09540f4976ed12.zip |
Merge pull request #3719 from baude/networklist
inclusion of podman network
Diffstat (limited to 'completions/bash')
-rw-r--r-- | completions/bash/podman | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index d2eb5b570..cf9b31393 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -946,6 +946,78 @@ _podman_healthcheck() { esac } +_podman_network() { + local boolean_options=" + --help + -h + " + subcommands=" + inspect + ls + rm + " + __podman_subcommands "$subcommands $aliases" && return + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + ;; + *) + COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) ) + ;; + esac +} + +_podman_network_inspect() { + local options_with_args=" + " + local boolean_options=" + --help + -h + " + _complete_ "$options_with_args" "$boolean_options" + + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + esac +} + +_podman_network_ls() { + local options_with_args=" + " + local boolean_options=" + --help + -h + --quiet + -q + " + _complete_ "$options_with_args" "$boolean_options" + + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + esac +} + +_podman_network_ls() { + local options_with_args=" + " + local boolean_options=" + --help + -h + " + _complete_ "$options_with_args" "$boolean_options" + + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + esac +} + _podman_generate() { local boolean_options=" --help |