5b429b6e48c6380e15362b7410851a0ed52e3776

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #3596 from kossmac/master

added stats command to docker plugin

Diff

 1diff --git a/plugins/docker/_docker b/plugins/docker/_docker
 2index 880b6faa6fec9de9241f376209beca5b3e76d6cd..df8319ea7ea9921a6d7cff93bcace78f7f8cb6ba 100644
 3--- a/plugins/docker/_docker
 4+++ b/plugins/docker/_docker
 5@@ -219,6 +219,10 @@ __start() {
 6     __docker_containers
 7 }
 8 
 9+__stats() {
10+    __docker_containers
11+}
12+
13 __stop() {
14     _arguments \
15         '(-t,--time=)'{-t,--time=}'[Number of seconds to wait for the container to stop before killing it.]'
16@@ -280,6 +284,7 @@ _1st_arguments=(
17     "save":"Save an image to a tar archive"
18     "search":"Search for an image in the docker index"
19     "start":"Start a stopped container"
20+    "stats":"Display a live stream of one or more containers' resource usage statistics"
21     "stop":"Stop a running container"
22     "tag":"Tag an image into a repository"
23     "top":"Lookup the running processes of a container"
24@@ -351,6 +356,8 @@ case "$words[1]" in
25         __save ;;
26     search)
27         __search ;;
28+    stats)
29+        __stats ;;
30     start)
31         __start ;;
32     stop)