mirror of
https://github.com/churchers/vm-bhyve.git
synced 2025-12-10 16:59:46 +01:00
Merge pull request #582 from ctuffli/ctuffli-fix-list
fix: Restore verbose option to list command
This commit is contained in:
@@ -34,16 +34,14 @@ core::list(){
|
||||
local _state _pcpu _rss _uptime
|
||||
local _format="%s^%s^%s^%s^%s^%s^%s^%s\n"
|
||||
|
||||
while getopts r _opt ; do
|
||||
case $_opt in
|
||||
while getopts rv _opt ; do
|
||||
case ${_opt} in
|
||||
r) _running_only='true' ;;
|
||||
|
||||
v) VM_OPT_VERBOSE="1" ;;
|
||||
*) util::usage ;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $?
|
||||
|
||||
_our_host=$(hostname)
|
||||
|
||||
vm::running_load
|
||||
|
||||
8
vm.8
8
vm.8
@@ -83,7 +83,7 @@
|
||||
.Ar name
|
||||
.Nm
|
||||
.Cm list
|
||||
.Op Fl r
|
||||
.Op Fl rv
|
||||
.Nm
|
||||
.Cm info
|
||||
.Op Ar name
|
||||
@@ -650,14 +650,16 @@ Removes the specified virtual machine from the system, deleting all associated
|
||||
disk images & configuration.
|
||||
.It Xo
|
||||
.Cm list
|
||||
.Op Fl r
|
||||
.Op Fl rv
|
||||
.Xc
|
||||
.br
|
||||
List all the virtual machines in the
|
||||
.Pa $vm_dir
|
||||
directory.
|
||||
This will show the basic configuration for each virtual machine, and whether
|
||||
they are currently running.
|
||||
they are currently running. Using the
|
||||
.Ar -v
|
||||
option displays additional information about each virtual machine.
|
||||
.Pp
|
||||
If the
|
||||
.Ar -r
|
||||
|
||||
Reference in New Issue
Block a user