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