Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
evz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Тимофей Смирнов
evz
Commits
cd7adf3c
Commit
cd7adf3c
authored
Mar 07, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement option_all and use it
parent
04a24815
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
4 deletions
+20
-4
evz-docker
bin/evz-docker
+1
-0
evz-functions
bin/evz-functions
+7
-0
evz-pct
bin/evz-pct
+5
-1
evz-qm
bin/evz-qm
+1
-1
evz-vboxmanage
bin/evz-vboxmanage
+1
-1
evz-vzctl
bin/evz-vzctl
+5
-1
No files found.
bin/evz-docker
View file @
cd7adf3c
...
...
@@ -138,6 +138,7 @@ case $CMD in
fi
# Size too hard
#docmd docker ps --format 'table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}\t{{.Size}}' "$@"
# allow -a, --all
docmd docker ps
--format
'table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}'
"
$@
"
info
"See evz ports ID for print ports"
;;
...
...
bin/evz-functions
View file @
cd7adf3c
...
...
@@ -55,3 +55,10 @@ arg_is_all()
[
"
$1
"
=
"all"
]
&&
return
return
1
}
option_all
()
{
[
"
$1
"
=
"-a"
]
&&
return
[
"
$1
"
=
"--all"
]
&&
return
return
1
}
bin/evz-pct
View file @
cd7adf3c
...
...
@@ -171,7 +171,11 @@ case $CMD in
get_list
"
$@
"
exit
fi
docmd pct list
"
$@
"
if
option_all
"
$1
"
;
then
docmd pct list
-a
else
docmd pct list
fi
#info "See evz ports ID for print ports"
;;
exec
)
# HELPCMD: execute command by list (all for all containers)
...
...
bin/evz-qm
View file @
cd7adf3c
...
...
@@ -137,7 +137,7 @@ case $CMD in
get_list
"
$@
"
exit
fi
if
[
"
$1
"
=
"-a"
]
||
[
"
$1
"
=
"--all"
]
;
then
if
option_all
"
$1
"
;
then
docmd qm list
else
docmd qm list |
grep
running
...
...
bin/evz-vboxmanage
View file @
cd7adf3c
...
...
@@ -170,7 +170,7 @@ case $CMD in
get_list
"
$@
"
exit
fi
if
[
"
$1
"
=
"-a"
]
;
then
if
option_all
"
$1
"
;
then
docmd vboxmanage list vms
else
docmd vboxmanage list runningvms
...
...
bin/evz-vzctl
View file @
cd7adf3c
...
...
@@ -129,7 +129,11 @@ case $CMD in
get_list
"
$@
"
exit
fi
a
=
vzlist
"
$@
"
if
option_all
"
$1
"
;
then
docmd vzlist
-a
else
docmd vzlist
fi
;;
exec
)
# HELPCMD: execute command by list (all for all containers)
###################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment