Merge pull request #1852 from rhatdan/completions

Cleaning up completions.
This commit is contained in:
OpenShift Merge Robot
2018-11-28 13:02:48 -08:00
committed by GitHub

View File

@ -791,6 +791,8 @@ _podman_container_refresh() {
local options_with_args=" local options_with_args="
" "
local boolean_options=" local boolean_options="
--help
-h
" "
_complete_ "$options_with_args" "$boolean_options" _complete_ "$options_with_args" "$boolean_options"
} }
@ -825,10 +827,6 @@ _podman_container_rm() {
_podman_rm _podman_rm
} }
_podman_container_run() {
_podman_run
}
_podman_container_start() { _podman_container_start() {
_podman_start _podman_start
} }
@ -1026,6 +1024,8 @@ _podman_diff() {
--format --format
" "
local boolean_options=" local boolean_options="
--help
-h
" "
_complete_ "$options_with_args" "$boolean_options" _complete_ "$options_with_args" "$boolean_options"
@ -1047,6 +1047,8 @@ _podman_exec() {
-u -u
" "
local boolean_options=" local boolean_options="
--help
-h
--latest --latest
-l -l
--privileged --privileged
@ -1069,6 +1071,8 @@ _podman_export() {
-o -o
" "
local boolean_options=" local boolean_options="
--help
-h
" "
case "$cur" in case "$cur" in
-*) -*)
@ -1085,6 +1089,8 @@ _podman_history() {
--format --format
" "
local boolean_options=" local boolean_options="
--help
-h
--human -H --human -H
--no-trunc --no-trunc
--quiet -q --quiet -q
@ -1360,6 +1366,8 @@ _podman_logs() {
local boolean_options=" local boolean_options="
--follow --follow
-f -f
--help
-h
--latest --latest
-l -l
--timestamps --timestamps
@ -1385,7 +1393,10 @@ _podman_pull() {
--signature-policy --signature-policy
" "
local boolean_options=" local boolean_options="
--all-tags -a --all-tags
-a
--help
-h
--quiet --quiet
-q -q
--tls-verify --tls-verify
@ -1401,6 +1412,8 @@ _podman_search() {
--limit --limit
" "
local boolean_options=" local boolean_options="
--help
-h
--no-trunc --no-trunc
" "
_complete_ "$options_with_args" "$boolean_options" _complete_ "$options_with_args" "$boolean_options"
@ -1414,10 +1427,10 @@ _podman_umount() {
local boolean_options=" local boolean_options="
--all --all
-a -a
--force
-f
--help --help
-h -h
--force
-f
" "
local options_with_args=" local options_with_args="
" "
@ -1458,6 +1471,8 @@ _podman_mount() {
_podman_push() { _podman_push() {
local boolean_options=" local boolean_options="
--compress --compress
--help
-h
--quiet --quiet
-q -q
--remove-signatures --remove-signatures
@ -1565,6 +1580,7 @@ _podman_container_run() {
local boolean_options=" local boolean_options="
--disable-content-trust=false --disable-content-trust=false
--help --help
-h
--init --init
--interactive -i --interactive -i
--oom-kill-disable --oom-kill-disable
@ -1595,6 +1611,7 @@ _podman_container_run() {
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
return
;; ;;
*) *)
__podman_complete_images --id __podman_complete_images --id
@ -1783,11 +1800,14 @@ _podman_restart() {
local boolean_options=" local boolean_options="
--all --all
-a -a
--help
-h
--latest --latest
-l -l
--running --running
--timeout --timeout
-t" -t
"
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
@ -1804,6 +1824,8 @@ _podman_rm() {
-a -a
--force --force
-f -f
--help
-h
--latest --latest
-l -l
--volumes --volumes
@ -1827,12 +1849,12 @@ _podman_rm() {
_podman_rmi() { _podman_rmi() {
local boolean_options=" local boolean_options="
--help --all
-h -a
--force --force
-f -f
-a --help
--all -h
" "
case "$cur" in case "$cur" in
@ -1847,9 +1869,10 @@ _podman_rmi() {
_podman_stats() { _podman_stats() {
local boolean_options=" local boolean_options="
--help
--all --all
-a -a
--help
-h
--no-stream --no-stream
--format --format
--no-reset --no-reset
@ -1869,6 +1892,8 @@ _podman_tag() {
local options_with_args=" local options_with_args="
" "
local boolean_options=" local boolean_options="
--help
-h
" "
case "$cur" in case "$cur" in
-*) -*)
@ -1935,6 +1960,8 @@ _podman_save() {
" "
local boolean_options=" local boolean_options="
--compress --compress
--help
-h
-q -q
--quiet --quiet
" "
@ -1951,11 +1978,12 @@ _podman_save() {
_podman_pause() { _podman_pause() {
local boolean_options=" local boolean_options="
-a
--all --all
-a
--help
-h
" "
local options_with_args=" local options_with_args="
--help -h
" "
local boolean_options="" local boolean_options=""
case "$cur" in case "$cur" in
@ -1970,13 +1998,15 @@ _podman_pause() {
_podman_port() { _podman_port() {
local options_with_args=" local options_with_args="
--help -h
" "
local boolean_options=" local boolean_options="
--all --all
-a -a
--help
-h
-l -l
--latest" --latest
"
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
@ -2000,6 +2030,7 @@ _podman_ps() {
" "
local boolean_options=" local boolean_options="
--all -a --all -a
--help -h
--latest -l --latest -l
--no-trunc --no-trunc
--pod --pod
@ -2016,10 +2047,10 @@ _podman_start() {
" "
local boolean_options=" local boolean_options="
--attach
-a
-h -h
--help --help
-a
--attach
-i -i
--interactive --interactive
--latest --latest
@ -2042,8 +2073,11 @@ _podman_stop() {
local boolean_options=" local boolean_options="
--all --all
-a -a
-h
--help
--latest --latest
-l" -l
"
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
@ -2056,13 +2090,13 @@ _podman_stop() {
_podman_unpause() { _podman_unpause() {
local boolean_options=" local boolean_options="
-a
--all --all
-a
--help
-h
" "
local options_with_args=" local options_with_args="
--help -h
" "
local boolean_options=""
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
@ -2075,10 +2109,12 @@ _podman_unpause() {
_podman_varlink() { _podman_varlink() {
local options_with_args=" local options_with_args="
--help -h
--timeout -t --timeout -t
" "
local boolean_options="" local boolean_options="
--help
-h
"
_complete_ "$options_with_args" "$boolean_options" _complete_ "$options_with_args" "$boolean_options"
} }
@ -2090,7 +2126,8 @@ _podman_wait() {
-i -i
-l -l
--interval --interval
--latest" --latest
"
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
@ -2124,6 +2161,8 @@ _podman_load() {
--signature-policy --signature-policy
" "
local boolean_options=" local boolean_options="
--help
-h
--quiet --quiet
-q -q
" "
@ -2220,6 +2259,8 @@ _podman_pod_create() {
" "
local boolean_options=" local boolean_options="
--help
-h
--infra --infra
" "
_complete_ "$options_with_args" "$boolean_options" _complete_ "$options_with_args" "$boolean_options"
@ -2232,6 +2273,8 @@ _podman_pod_kill() {
local boolean_options=" local boolean_options="
--all --all
-a -a
--help
-h
--signal --signal
-s -s
--latest --latest
@ -2261,6 +2304,8 @@ __podman_pod_ps() {
--ctr-ids --ctr-ids
--ctr-names --ctr-names
--ctr-status --ctr-status
--help
-h
-q -q
--quiet --quiet
--no-trunc --no-trunc
@ -2290,6 +2335,8 @@ _podman_pod_restart() {
local boolean_options=" local boolean_options="
--all --all
-a -a
--help
-h
--latest --latest
-l -l
" "
@ -2311,6 +2358,8 @@ _podman_pod_rm() {
local boolean_options=" local boolean_options="
-a -a
--all --all
--help
-h
-f -f
--force --force
--latest --latest
@ -2334,6 +2383,8 @@ _podman_pod_start() {
local boolean_options=" local boolean_options="
--all --all
-a -a
--help
-h
--latest --latest
-l -l
" "
@ -2356,6 +2407,8 @@ _podman_pod_stop() {
--all --all
-a -a
--cleanup --cleanup
--help
-h
--latest --latest
-l -l
" "
@ -2377,6 +2430,8 @@ _podman_pod_pause() {
local boolean_options=" local boolean_options="
--all --all
-a -a
--help
-h
--latest --latest
-l -l
" "
@ -2398,6 +2453,8 @@ _podman_pod_unpause() {
local boolean_options=" local boolean_options="
--all --all
-a -a
--help
-h
--latest --latest
-l -l
" "
@ -2458,8 +2515,10 @@ _podman_podman() {
--namespace --namespace
" "
local boolean_options=" local boolean_options="
--help -h --help
--version -v -h
--version
-v
--syslog --syslog
" "
commands=" commands="