Mercurial > hg > Members > anatofuz > ie-virsh
diff src/command.rs @ 12:0df4d067badb
move each crates
author | AnaTofuZ <k198584@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 29 Oct 2020 16:15:52 +0900 |
parents | |
children | 56e9763abeef |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/command.rs Thu Oct 29 16:15:52 2020 +0900 @@ -0,0 +1,10 @@ +use super::virsh; + +pub fn list_command(user_name: &'static str) { + let (ldump_msg, vm_list_strs) = virsh::get_vm_list(user_name); + println!("{}", ldump_msg.info_msg); + println!("{}", ldump_msg.border_line); + for vm_info in vm_list_strs { + println!("{}", vm_info); + } +}