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
04a24815
Commit
04a24815
authored
Mar 07, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow containers' names in list
parent
a03c8a09
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
1 deletion
+33
-1
evz-docker
bin/evz-docker
+5
-0
evz-functions
bin/evz-functions
+4
-1
evz-pct
bin/evz-pct
+8
-0
evz-qm
bin/evz-qm
+5
-0
evz-vboxmanage
bin/evz-vboxmanage
+6
-0
evz-vzctl
bin/evz-vzctl
+5
-0
No files found.
bin/evz-docker
View file @
04a24815
...
...
@@ -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
"
$@
"
...
...
bin/evz-functions
View file @
04a24815
...
...
@@ -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
()
...
...
bin/evz-pct
View file @
04a24815
...
...
@@ -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:
$@
"
...
...
bin/evz-qm
View file @
04a24815
...
...
@@ -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:
$@
"
...
...
bin/evz-vboxmanage
View file @
04a24815
...
...
@@ -41,6 +41,12 @@ list_ALL()
# | line_filter
}
list_ALL_names
()
{
#a= vboxmanage list vms | sed -e "s| {.*||"
return
}
todo
()
{
warning
"
$@
"
...
...
bin/evz-vzctl
View file @
04a24815
...
...
@@ -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
()
{
...
...
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