diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-12 03:13:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 03:13:12 -0700 |
commit | 2ad59d311b8c573186574cec6d4dc57bff0c3a53 (patch) | |
tree | 70697fa1d2431eb06d8128fa69f2693e156e187a /completions/bash | |
parent | 7837bf3c071f1259bc08d8f9e52ed2b4edbda428 (diff) | |
parent | 1c3bd95b81e5247b7db3f8333aeb01ea58073fe9 (diff) | |
download | podman-2ad59d311b8c573186574cec6d4dc57bff0c3a53.tar.gz podman-2ad59d311b8c573186574cec6d4dc57bff0c3a53.tar.bz2 podman-2ad59d311b8c573186574cec6d4dc57bff0c3a53.zip |
Merge pull request #6186 from vrothberg/auto-update
auto-update: support authfiles
Diffstat (limited to 'completions/bash')
-rw-r--r-- | completions/bash/podman | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 1e29a2e30..5dbd179ce 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -702,6 +702,27 @@ __podman_images() { __podman_q images $images_args | awk "$awk_script" | grep -v '<none>$' } +_podman_auto_update() { + local options_with_args=" + --authfile + " + + local boolean_options=" + --help + -h + " + + _complete_ "$options_with_args" "$boolean_options" + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + *) + __podman_complete_volume_names + ;; + esac +} + # __podman_complete_volumes applies completion of volumes based on the current # value of `$cur` or the value of the optional first option `--cur`, if given. __podman_complete_volumes() { |