diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-06-13 07:40:41 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-13 14:30:45 +0000 |
commit | 65033b586fb353734d29dac1dfb9f342d5eeaa21 (patch) | |
tree | 1713e18f2b1a02d2accb8d5464fe857f67843307 /completions | |
parent | be217caa3856c76a6b997c203422715e13b0335a (diff) | |
download | podman-65033b586fb353734d29dac1dfb9f342d5eeaa21.tar.gz podman-65033b586fb353734d29dac1dfb9f342d5eeaa21.tar.bz2 podman-65033b586fb353734d29dac1dfb9f342d5eeaa21.zip |
add podman container and image command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #941
Approved by: TomSweeneyRedHat
Diffstat (limited to 'completions')
-rw-r--r-- | completions/bash/podman | 229 |
1 files changed, 229 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index a5fd899d8..d28108867 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -666,6 +666,149 @@ _podman_attach() { esac } +_podman_container_attach() { + _podman_attach +} + +_podman_container_commit() { + _podman_commit +} + +_podman_container_create() { + _podman_create +} + +_podman_container_diff() { + _podman_diff +} + +_podman_container_exec() { + _podman_exec +} + +_podman_container_export() { + _podman_export +} + +_podman_container_inspect() { + _podman_inspect +} + +_podman_container_kill() { + _podman_kill +} + +_podman_container_ls() { + _podman_ls +} + +_podman_container_logs() { + _podman_logs +} + +_podman_container_mount() { + _podman_mount +} + +_podman_container_pause() { + _podman_pause +} + +_podman_container_port() { + _podman_port +} + +_podman_container_restart() { + _podman_restart +} + +_podman_container_rm() { + _podman_rm +} + +_podman_container_run() { + _podman_run +} + +_podman_container_start() { + _podman_start +} + +_podman_container_stats() { + _podman_stats +} + +_podman_container_stop() { + _podman_stop +} + +_podman_container_top() { + _podman_top +} + +_podman_container_umount() { + _podman_umount +} + +_podman_container_unmount() { + _podman_unmount +} + +_podman_container_unpause() { + _podman_unpause +} + +_podman_container_wait() { + _podman_wait +} + +_podman_container() { + local boolean_options=" + --help + -h + " + subcommands=" + attach + commit + create + diff + exec + export + inspect + kill + ls + logs + mount + pause + port + restart + rm + run + start + stats + stop + top + umount + unmount + unpause + wait + " + local aliases=" + list + ps + " + __podman_subcommands "$subcommands $aliases" && return + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + ;; + *) + COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) ) + ;; + esac +} + _podman_commit() { local options_with_args=" --author @@ -900,6 +1043,87 @@ _podman_info() { esac } +_podman_image_build() { + _podman_build +} + +_podman_image_history() { + _podman_history +} + +_podman_image_import() { + _podman_import +} + +_podman_image_inspect() { + _podman_inspect +} + +_podman_image_load() { + _podman_load +} + +_podman_image_list() { + _podman_images +} + +_podman_image_ls() { + _podman_images +} + +_podman_image_pull() { + _podman_pull +} + +_podman_image_push() { + _podman_push +} + +_podman_image_rm() { + _podman_rmi +} + +_podman_image_save() { + _podman_save +} + +_podman_image_tag() { + _podman_tag +} + +_podman_image() { + local boolean_options=" + --help + -h + " + subcommands=" + build + history + import + inspect + load + ls + pull + push + rm + save + tag + " + local aliases=" + list + " + __podman_subcommands "$subcommands $aliases" && return + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + ;; + *) + COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) ) + ;; + esac +} + _podman_images() { local boolean_options=" -a @@ -1609,6 +1833,10 @@ _podman_port() { esac } +_podman_ls() { + _podman_ps +} + _podman_ps() { local options_with_args=" --filter -f @@ -1786,6 +2014,7 @@ _podman_podman() { attach build commit + container create diff exec |