mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge e9e0f5dd96 into 3705d47bb3
This commit is contained in:
commit
f4ad54588d
1 changed files with 26 additions and 0 deletions
|
|
@ -114,6 +114,14 @@ __events() {
|
|||
'--since=[Show previously created events and then stream.]'
|
||||
}
|
||||
|
||||
__exec() {
|
||||
_arguments \
|
||||
'(-d,--detach)'{-d,--detach}'[Detached mode: run command in the background]' \
|
||||
'(-i,--interactive)'{-i,--interactive}'[Keep STDIN open even if not attached]' \
|
||||
'(-t,--tty)'{-t,--tty}'[Allocate a pseudo-TTY]'
|
||||
__docker_containers
|
||||
}
|
||||
|
||||
__export() {
|
||||
__docker_containers
|
||||
}
|
||||
|
|
@ -179,6 +187,10 @@ __top() {
|
|||
__docker_containers
|
||||
}
|
||||
|
||||
__pause() {
|
||||
__docker_containers
|
||||
}
|
||||
|
||||
__ps() {
|
||||
_arguments \
|
||||
'(-a,--all)'{-a,--all}'[Show all containers. Only running containers are shown by default.]' \
|
||||
|
|
@ -299,6 +311,10 @@ __tag() {
|
|||
__docker_images
|
||||
}
|
||||
|
||||
__unpause() {
|
||||
__docker_containers
|
||||
}
|
||||
|
||||
__version() {
|
||||
# no arguments
|
||||
}
|
||||
|
|
@ -327,6 +343,7 @@ _1st_arguments=(
|
|||
"create":"Create new container without running it"
|
||||
"diff":"Inspect changes on a container's filesystem"
|
||||
"events":"Get real time events from the server"
|
||||
"exec":"Run a command in an existing container"
|
||||
"export":"Stream the contents of a container as a tar archive"
|
||||
"history":"Show the history of an image"
|
||||
"images":"List images"
|
||||
|
|
@ -336,8 +353,10 @@ _1st_arguments=(
|
|||
"kill":"Kill a running container"
|
||||
"load":"Load an image from a tar archive"
|
||||
"login":"Register or Login to the docker registry server"
|
||||
"logout":"Log out from a Docker registry server"
|
||||
"logs":"Fetch the logs of a container"
|
||||
"port":"Lookup the public-facing port which is NAT-ed to PRIVATE_PORT"
|
||||
"pause":"Pause all processes within a container"
|
||||
"ps":"List containers"
|
||||
"pull":"Pull an image or a repository from the docker registry server"
|
||||
"push":"Push an image or a repository to the docker registry server"
|
||||
|
|
@ -352,6 +371,7 @@ _1st_arguments=(
|
|||
"stop":"Stop a running container"
|
||||
"tag":"Tag an image into a repository"
|
||||
"top":"Lookup the running processes of a container"
|
||||
"unpause":"Unpause a paused container"
|
||||
"version":"Show the docker version information"
|
||||
"wait":"Block until a container stops, then print its exit code"
|
||||
"exec":"Run a task inside a running container"
|
||||
|
|
@ -380,6 +400,8 @@ case "$words[1]" in
|
|||
__diff ;;
|
||||
events)
|
||||
__events ;;
|
||||
exec)
|
||||
__exec ;;
|
||||
export)
|
||||
__export ;;
|
||||
history)
|
||||
|
|
@ -402,6 +424,8 @@ case "$words[1]" in
|
|||
__logs ;;
|
||||
port)
|
||||
__port ;;
|
||||
pause)
|
||||
__pause ;;
|
||||
ps)
|
||||
__ps ;;
|
||||
pull)
|
||||
|
|
@ -430,6 +454,8 @@ case "$words[1]" in
|
|||
__tag ;;
|
||||
top)
|
||||
__top ;;
|
||||
unpause)
|
||||
__unpause ;;
|
||||
version)
|
||||
__version ;;
|
||||
wait)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue