Mercurial > hg > Members > anatofuz > ie-virsh
changeset 23:0ee235caebc5
tweak
author | AnaTofuZ <k198584@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 03 Nov 2020 17:48:50 +0900 |
parents | 78f246ce5235 |
children | da27437a94b0 |
files | src/command.rs src/main.rs src/xml.rs |
diffstat | 3 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/command.rs Tue Nov 03 17:44:19 2020 +0900 +++ b/src/command.rs Tue Nov 03 17:48:50 2020 +0900 @@ -94,10 +94,9 @@ format!("{}-{}", user_name, vm_name) } - -fn generate_vm_name(user_name:&'static str, vm_name: &str) -> String { +fn generate_vm_name(user_name: &'static str, vm_name: &str) -> String { if vm_name.starts_with(user_name) { return vm_name.to_string(); } format!("{}-{}", user_name, vm_name) -} \ No newline at end of file +}
--- a/src/main.rs Tue Nov 03 17:44:19 2020 +0900 +++ b/src/main.rs Tue Nov 03 17:48:50 2020 +0900 @@ -18,7 +18,7 @@ Console(Console), Start(Start), Ttyconsole(TTyconsole), - VNCDisplay(VNCDisplay), + Vncdisplay(Vncdisplay), Dumpxml(Dumpxml), DefineGDB(DefineGDB), Domiflist(Domiflist), @@ -45,7 +45,7 @@ /// vncdisplay #[derive(Clap)] -struct VNCDisplay { +struct Vncdisplay { name: String, } @@ -140,7 +140,7 @@ command::destroy(user_name, arg.name); } - SubCommand::VNCDisplay(arg) => { + SubCommand::Vncdisplay(arg) => { user::set_root_id(); command::vncdisplay(user_name, arg.name); }