Commit 04a24815 authored by Vitaly Lipatov's avatar Vitaly Lipatov

allow containers' names in list

parent a03c8a09
......@@ -41,6 +41,11 @@ list_ALL()
a= docker ps -a -q | line_filter
}
list_ALL_names()
{
a= docker ps --all -q --format "{{.Names}}" | line_filter
}
todo()
{
warning "$@"
......
......@@ -43,7 +43,10 @@ get_list()
arg_is_id()
{
echo " $(list_ALL) " | grep -q " $1 "
[ -n "$1" ] || return 1
echo " $(list_ALL) " | grep -q " $1 " && return 0
echo " $(list_ALL_names) " | grep -q " $1 " && return 0
return 1
}
arg_is_all()
......
......@@ -25,6 +25,7 @@ list_all()
return
fi
# TODO
#a= pct list | grep "[0-9]\+" | sed -e "s| *\([0-9]\+\) .*|\1|" | line_filter
}
......@@ -36,9 +37,16 @@ list_ALL()
return
fi
# TODO
#a= pct list | grep "[0-9]\+" | sed -e "s| *\([0-9]\+\) .*|\1|" | line_filter
}
list_ALL_names()
{
# TODO
return
}
todo()
{
warning "FIXME: $@"
......
......@@ -39,6 +39,11 @@ list_ALL()
a= qm list | grep "[0-9]\+" | sed -e "s| *\([0-9]\+\) .*|\1|" | line_filter
}
list_ALL_names()
{
a= qm list | grep "[0-9]\+" | sed -e "s| *\([0-9]\+\) .*|\1|" | line_filter
}
todo()
{
warning "FIXME: $@"
......
......@@ -41,6 +41,12 @@ list_ALL()
# | line_filter
}
list_ALL_names()
{
#a= vboxmanage list vms | sed -e "s| {.*||"
return
}
todo()
{
warning "$@"
......
......@@ -32,6 +32,11 @@ list_ALL()
a= vzlist -1 -a "$@" | line_filter
}
list_ALL_names()
{
a= vzlist -H -a -o name | grep -v "^-$"
}
evz_vzctl()
{
......
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