Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upChange output format of qvm-ls to something sane #923
Comments
marmarek
added this to the
Release 3 milestone
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 12 Nov 2014 14:46 UTC
I concur :)
Shall we preserve the old format (ASCI art) for backward compatibility (and use it by default when no switches passed), in case there were some user-written scripts parsing this output? Or perhaps R2/R3 switch allows us to ignore this potential compatibility problem? Perhaps only use the old format if --old-format switch passed?
|
Comment by joanna on 12 Nov 2014 14:46 UTC Shall we preserve the old format (ASCI art) for backward compatibility (and use it by default when no switches passed), in case there were some user-written scripts parsing this output? Or perhaps R2/R3 switch allows us to ignore this potential compatibility problem? Perhaps only use the old format if --old-format switch passed? |
marmarek
added
enhancement
C: core
P: minor
labels
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by woju on 12 Nov 2014 15:14 UTC
I think it should stay in R2.0 untouched, but we can just remove it altogether in R3. I think nobody will ever need the table in the strict meaning of the word. Anybody who attempted to parse such format is probably better with python -c 'import qubes; ...'. Question is, what to do for R2.1?
|
Comment by woju on 12 Nov 2014 15:14 UTC |
marmarek
modified the milestones:
Release 4.0,
Release 3.0
May 13, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kalkin
Oct 8, 2015
Member
Some time ago i wrote a zsh function which shows a nicer human readable output. Maybe it will inspire someone to solve it similar in python
▶ dom0 Running Yes Admin n/a black 19677MB
▶ foo Running *firewallvm orange 4096MB
▶ emacs Running *firewallvm orange 2048MB
▶ firewallvm Running Proxy netvm green 3000MB
◍ bar Transient *firewallvm blue 4096MB
■ private Halted *firewallvm green 4000MB
▶ media Running firewallvm yellow 2048MB
▶ netvm Running Net n/a red 300MB
▶ news Running *firewallvm green 4000MB
▶ zum Running *firewallvm green 4000MB
▶ skype Running *firewallvm green 1024MB
|
Some time ago i wrote a zsh function which shows a nicer human readable output. Maybe it will inspire someone to solve it similar in python
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@woju can you paste output from the core3 qvm-ls? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
woju
Oct 12, 2015
Member
NAME STATUS LABEL TEMPLATE NETVM
dom0 0rU----- - - -
testvm a------- red fedora-21 -
fedora-21 t-U----- black - -
Actually we can close this, because it was fixed long ago in core3 branch.
Actually we can close this, because it was fixed long ago in core3 branch. |
woju
closed this
Oct 12, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 12, 2015
Member
Just to make sure: besides this fancy STATUS column, is it possible to get something human-readable? With VM type ("AppVM", "TemplateVM" etc), status ("running"), ...
|
Just to make sure: besides this fancy |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
woju
Oct 12, 2015
Member
On Mon, Oct 12, 2015 at 04:02:00PM -0700, Marek Marczykowski-Górecki wrote:
Just to make sure: besides this fancy
STATUScolumn, is it possible
to get something human-readable? With VM type ("AppVM", "TemplateVM"
etc), status ("running"), ...
No, it is not at the moment. But it can be, if it is needed.
|
On Mon, Oct 12, 2015 at 04:02:00PM -0700, Marek Marczykowski-Górecki wrote:
No, it is not at the moment. But it can be, if it is needed. |
marmarek commentedMar 8, 2015
Reported by woju on 12 Nov 2014 14:28 UTC
xl list,virsh listetc.ps -o. Let him/her(/it in case of software) choose even arbitrary variables aka properties. It's really easier than it sounds.Migrated-From: https://wiki.qubes-os.org/ticket/923