Mercurial > hg > Members > anatofuz > ie-virsh
changeset 22:78f246ce5235
fix cmd name
author | AnaTofuZ <k198584@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 03 Nov 2020 17:44:19 +0900 |
parents | 9f3d29b8561a |
children | 0ee235caebc5 e8ba0f63c227 |
files | src/command.rs src/main.rs |
diffstat | 2 files changed, 15 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/command.rs Tue Nov 03 17:36:22 2020 +0900 +++ b/src/command.rs Tue Nov 03 17:44:19 2020 +0900 @@ -15,7 +15,7 @@ let vm_arg = xml::GenerateVMArg::new(user_name, &vm_name, false); let result = vm_arg.generate(); if result.is_ok() { - virsh::command_require_vm_name(&result.unwrap(), "define") + virsh::command_require_vm_name(result.unwrap(), "define") } }
--- a/src/main.rs Tue Nov 03 17:36:22 2020 +0900 +++ b/src/main.rs Tue Nov 03 17:44:19 2020 +0900 @@ -11,18 +11,18 @@ #[derive(Clap)] enum SubCommand { List(List), - Undefine(UnDefine), + Undefine(Undefine), Define(Define), Shutdown(Shutdown), Destroy(Destroy), Console(Console), Start(Start), - Ttyconsole(TTyConsole), + Ttyconsole(TTyconsole), VNCDisplay(VNCDisplay), - DumpXML(DumpXML), + Dumpxml(Dumpxml), DefineGDB(DefineGDB), - DomIfList(DomIfList), - DomInfo(DomInfo), + Domiflist(Domiflist), + Dominfo(Dominfo), } /// define the domain in which the gdb port is opened from the template XML file @@ -39,7 +39,7 @@ /// domain information in XML #[derive(Clap)] -struct DumpXML { +struct Dumpxml { name: String, } @@ -51,7 +51,7 @@ /// undefine a domain #[derive(Clap)] -struct UnDefine { +struct Undefine { name: String, } @@ -63,7 +63,7 @@ /// tty console #[derive(Clap)] -struct TTyConsole { +struct TTyconsole { name: String, } @@ -91,13 +91,13 @@ /// list all domain virtual interfaces #[derive(Clap)] -struct DomIfList { +struct Domiflist { name: String, } /// domain information #[derive(Clap)] -struct DomInfo { +struct Dominfo { name: String, } @@ -150,9 +150,9 @@ command::ttyconsole(user_name, arg.name); } - SubCommand::DumpXML(arg) => { + SubCommand::Dumpxml(arg) => { user::set_root_id(); - command::ttyconsole(user_name, arg.name); + command::dumpxml(user_name, arg.name); } SubCommand::Undefine(arg) => { @@ -160,12 +160,12 @@ command::undefine(user_name, arg.name); } - SubCommand::DomIfList(arg) => { + SubCommand::Domiflist(arg) => { user::set_root_id(); command::domiflist(user_name, arg.name); } - SubCommand::DomInfo(arg) => { + SubCommand::Dominfo(arg) => { user::set_root_id(); command::dominfo(user_name, arg.name); }