diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-23 17:45:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 17:45:38 +0200 |
commit | 397dcc358a60eef1de22384c662480892a317ec4 (patch) | |
tree | acbc9c2f9d89b3fa48599e944e8e99d17f3cb87f /completions/bash/podman | |
parent | e25528633d1fbcc38f072c8443f0038a9c161cad (diff) | |
parent | 17783dda6880c786a6eb3f47b3b6100e43bcdc77 (diff) | |
download | podman-397dcc358a60eef1de22384c662480892a317ec4.tar.gz podman-397dcc358a60eef1de22384c662480892a317ec4.tar.bz2 podman-397dcc358a60eef1de22384c662480892a317ec4.zip |
Merge pull request #5843 from QiWang19/manifest_create
manifest create,add,inspect
Diffstat (limited to 'completions/bash/podman')
-rw-r--r-- | completions/bash/podman | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 6997db3b5..41a76a967 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -1733,6 +1733,83 @@ _podman_logs() { esac } +_podman_manifest() { + local boolean_options=" + --help + -h + " + subcommands=" + add + create + inspect + " + __podman_subcommands "$subcommands" && return + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + ;; + *) + COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) ) + ;; + esac +} + +_podman_manifest_add() { + local options_with_args=" + --annotation + --arch + --features + --os-version + --variant + " + + local boolean_options=" + --all + --help + -h + " + + _complete_ "$options_with_args" "$boolean_options" + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + *) + __podman_complete_images --id + ;; + esac +} + +_podman_manifest_create() { + local boolean_options=" + --all + --help + -h + " + + _complete_ "$boolean_options" +} + +_podman_manifest_inspect() { + local options_with_args=" + " + + local boolean_options=" + " + + _complete_ "$options_with_args" "$boolean_options" + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + *) + __podman_complete_images --id + + ;; + esac +} + _podman_pull() { local options_with_args=" --authfile @@ -3356,6 +3433,7 @@ _podman_podman() { login logout logs + manifest mount pause pod |