Mercurial > hg > Members > anatofuz > ie-virsh
diff src/main.rs @ 22:78f246ce5235
fix cmd name
author | AnaTofuZ <k198584@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 03 Nov 2020 17:44:19 +0900 (2020-11-03) |
parents | da4858f4658d |
children | 0ee235caebc5 e8ba0f63c227 |
line wrap: on
line diff
--- 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); }