mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
Merge pull request #7669 from zhangguanzhang/missing-completion
fix missing completion in podman run
This commit is contained in:
@ -404,6 +404,16 @@ __podman_local_interfaces() {
|
|||||||
ip addr show scope global 2>/dev/null | sed -n 's| \+inet \([0-9.]\+\).* \([^ ]\+\)|\1 \2|p'
|
ip addr show scope global 2>/dev/null | sed -n 's| \+inet \([0-9.]\+\).* \([^ ]\+\)|\1 \2|p'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__podman_complete_restart() {
|
||||||
|
case "$prev" in
|
||||||
|
--restart)
|
||||||
|
COMPREPLY=( $( compgen -W "always no on-failure" -- "$cur") )
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
__podman_complete_local_interfaces() {
|
__podman_complete_local_interfaces() {
|
||||||
local additional_interface
|
local additional_interface
|
||||||
if [ "$1" = "--add" ] ; then
|
if [ "$1" = "--add" ] ; then
|
||||||
@ -2178,6 +2188,7 @@ _podman_container_run() {
|
|||||||
--preserve-fds
|
--preserve-fds
|
||||||
--publish -p
|
--publish -p
|
||||||
--pull
|
--pull
|
||||||
|
--restart
|
||||||
--runtime
|
--runtime
|
||||||
--rootfs
|
--rootfs
|
||||||
--security-opt
|
--security-opt
|
||||||
@ -2232,6 +2243,7 @@ _podman_container_run() {
|
|||||||
--sig-proxy=false
|
--sig-proxy=false
|
||||||
"
|
"
|
||||||
__podman_complete_detach_keys && return
|
__podman_complete_detach_keys && return
|
||||||
|
__podman_complete_restart && return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
|
Reference in New Issue
Block a user