mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
@ -47,10 +47,10 @@ __podman_pods() {
|
|||||||
format='{{.ID}}'
|
format='{{.ID}}'
|
||||||
shift
|
shift
|
||||||
elif [ "$1" = "--name" ] ; then
|
elif [ "$1" = "--name" ] ; then
|
||||||
format='{{.Names}}'
|
format='{{.Name}}'
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
format='{{.Names}}'
|
format='{{.Name}}'
|
||||||
fi
|
fi
|
||||||
__podman_q pod ps --format "$format" "$@"
|
__podman_q pod ps --format "$format" "$@"
|
||||||
}
|
}
|
||||||
@ -1194,7 +1194,14 @@ _podman_import() {
|
|||||||
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__podman_list_images
|
local counter=$( __podman_pos_first_nonflag "$options_with_args" )
|
||||||
|
if [ "$cword" -eq "$((counter))" ]; then
|
||||||
|
__podman_complete_images --repo --tag
|
||||||
|
return
|
||||||
|
else
|
||||||
|
_filedir
|
||||||
|
return
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -2271,10 +2278,26 @@ _podman_generate_kube() {
|
|||||||
local options_with_args=""
|
local options_with_args=""
|
||||||
|
|
||||||
local boolean_options="
|
local boolean_options="
|
||||||
|
-h
|
||||||
|
--help
|
||||||
-s
|
-s
|
||||||
--service
|
--service
|
||||||
"
|
"
|
||||||
|
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
COMPREPLY=( $( compgen -W "
|
||||||
|
$(__podman_containers --all)
|
||||||
|
$(__podman_pods)
|
||||||
|
" -- "$cur" ) )
|
||||||
|
__ltrim_colon_completions "$cur"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_podman_play_kube() {
|
_podman_play_kube() {
|
||||||
local options_with_args="
|
local options_with_args="
|
||||||
--authfile
|
--authfile
|
||||||
@ -2291,6 +2314,16 @@ _podman_play_kube() {
|
|||||||
--tls-verify
|
--tls-verify
|
||||||
"
|
"
|
||||||
|
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
_filedir
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_podman_container_runlabel() {
|
_podman_container_runlabel() {
|
||||||
local options_with_args="
|
local options_with_args="
|
||||||
--authfile
|
--authfile
|
||||||
|
Reference in New Issue
Block a user