Commit d00805af authored by Vitaly Lipatov's avatar Vitaly Lipatov

add more aliases

parent d038adf4
...@@ -99,7 +99,7 @@ case $CMD in ...@@ -99,7 +99,7 @@ case $CMD in
todo vzctl $CMD $i $OPTIONS --save todo vzctl $CMD $i $OPTIONS --save
done done
;; ;;
ubc) # HELPCMD: print resource using via vzubc ubc|resources) # HELPCMD: print resource using
LIST=$(get_list "$@") LIST=$(get_list "$@")
showcmd docker stats --no-stream showcmd docker stats --no-stream
for i in $LIST ; do for i in $LIST ; do
...@@ -127,7 +127,7 @@ case $CMD in ...@@ -127,7 +127,7 @@ case $CMD in
docmd docker restart $i docmd docker restart $i
done done
;; ;;
list) # HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers) list|ps) # HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers)
# if -q, just id list # if -q, just id list
if [ -z "$verbose" ] || [ "$1" = "-1" ] || [ "$1" = "-q" ] ; then if [ -z "$verbose" ] || [ "$1" = "-1" ] || [ "$1" = "-q" ] ; then
[ -z "$verbose" ] || shift [ -z "$verbose" ] || shift
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
# TODO: add all support for all cases # TODO: add all support for all cases
# TODO: add ports command support (via rooter/iptables) # TODO: add ports command support (via rooter/iptables)
# TODO: add cp support
list_all() list_all()
{ {
a= vzlist -1 "$@" | line_filter a= vzlist -1 "$@" | line_filter
...@@ -76,7 +78,7 @@ case $CMD in ...@@ -76,7 +78,7 @@ case $CMD in
a= vzctl $CMD $i $OPTIONS --save a= vzctl $CMD $i $OPTIONS --save
done done
;; ;;
ubc) # HELPCMD: print resource using via vzubc ubc|resources) # HELPCMD: print resource using via vzubc
LIST=$(get_list "$@") LIST=$(get_list "$@")
for i in $LIST ; do for i in $LIST ; do
#info "Do $CMD on $i ..." #info "Do $CMD on $i ..."
...@@ -104,7 +106,7 @@ case $CMD in ...@@ -104,7 +106,7 @@ case $CMD in
docmd vzctl restart $i docmd vzctl restart $i
done done
;; ;;
list) # HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers) list|ps) # HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers)
# if -q, just id list # if -q, just id list
if [ -z "$verbose" ] || [ "$1" = "-1" ] || [ "$1" = "-q" ] ; then if [ -z "$verbose" ] || [ "$1" = "-1" ] || [ "$1" = "-q" ] ; then
[ -z "$verbose" ] || shift [ -z "$verbose" ] || shift
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment