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
15ebf9b5
Commit
15ebf9b5
authored
Nov 08, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evz: add list, exec
parent
45674b3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
evz
bash_completion/evz
+2
-1
evz
bin/evz
+11
-0
No files found.
bash_completion/evz
View file @
15ebf9b5
...
...
@@ -7,6 +7,7 @@ _evz_list()
{
#COMPREPLY=( $( evz list-all 2>/dev/null ) )
#COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
true
}
_evz_usage_list()
...
...
@@ -14,7 +15,7 @@ _evz_usage_list()
#local USLIST=$(evz ${prev##*/} usage 2>/dev/null | sed -e "y/|/ /" -ne "s/^.*\(u\|U\|msg_u\)sage.*{\(.*\)}.*$/\2/p")
#COMPREPLY=( $( compgen -W '$USLIST' -- "$cur" ) )
# TODO: from evz --help
COMPREPLY=( $( echo "on off stop start destroy" ) )
COMPREPLY=( $( echo "on off stop start destroy
list exec
" ) )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
}
...
...
bin/evz
View file @
15ebf9b5
...
...
@@ -62,6 +62,17 @@ case $CMD in
vzctl start
$i
done
;;
list
)
vzlist
"
$@
"
;;
exec
)
INCMD
=
"
$1
"
shift
for
i
in
"
$@
"
;
do
#info "Executing on $i ..."
vzctl
exec
$i
"
$INCMD
"
done
;;
destroy
)
echo
"You request to destroy follow containers:"
vzlist
"
$@
"
...
...
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