Merge pull request #582 from ctuffli/ctuffli-fix-list

fix: Restore verbose option to list command
This commit is contained in:
Mateusz Kwiatkowski
2025-01-22 13:57:57 +01:00
committed by GitHub
2 changed files with 8 additions and 8 deletions

View File

@@ -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
View File

@@ -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