1
0
mirror of https://github.com/docker/cli.git synced 2026-01-06 05:41:44 +03:00

Add bash completion for docker rename

Signed-off-by: Mike Dillon <mike@embody.org>
This commit is contained in:
Mike Dillon
2015-02-18 11:49:05 -08:00
committed by Tibor Vass
parent 3bb3eae782
commit ceee2175bd

View File

@@ -552,6 +552,13 @@ _docker_push() {
fi
}
_docker_rename() {
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_containers_all
fi
}
_docker_restart() {
case "$prev" in
--time|-t)
@@ -914,6 +921,7 @@ _docker() {
ps
pull
push
rename
restart
rm
rmi