comparison src/main.rs @ 23:0ee235caebc5

tweak
author AnaTofuZ <k198584@ie.u-ryukyu.ac.jp>
date Tue, 03 Nov 2020 17:48:50 +0900
parents 78f246ce5235
children da27437a94b0
comparison
equal deleted inserted replaced
22:78f246ce5235 23:0ee235caebc5
16 Shutdown(Shutdown), 16 Shutdown(Shutdown),
17 Destroy(Destroy), 17 Destroy(Destroy),
18 Console(Console), 18 Console(Console),
19 Start(Start), 19 Start(Start),
20 Ttyconsole(TTyconsole), 20 Ttyconsole(TTyconsole),
21 VNCDisplay(VNCDisplay), 21 Vncdisplay(Vncdisplay),
22 Dumpxml(Dumpxml), 22 Dumpxml(Dumpxml),
23 DefineGDB(DefineGDB), 23 DefineGDB(DefineGDB),
24 Domiflist(Domiflist), 24 Domiflist(Domiflist),
25 Dominfo(Dominfo), 25 Dominfo(Dominfo),
26 } 26 }
43 name: String, 43 name: String,
44 } 44 }
45 45
46 /// vncdisplay 46 /// vncdisplay
47 #[derive(Clap)] 47 #[derive(Clap)]
48 struct VNCDisplay { 48 struct Vncdisplay {
49 name: String, 49 name: String,
50 } 50 }
51 51
52 /// undefine a domain 52 /// undefine a domain
53 #[derive(Clap)] 53 #[derive(Clap)]
138 SubCommand::Destroy(arg) => { 138 SubCommand::Destroy(arg) => {
139 user::set_root_id(); 139 user::set_root_id();
140 command::destroy(user_name, arg.name); 140 command::destroy(user_name, arg.name);
141 } 141 }
142 142
143 SubCommand::VNCDisplay(arg) => { 143 SubCommand::Vncdisplay(arg) => {
144 user::set_root_id(); 144 user::set_root_id();
145 command::vncdisplay(user_name, arg.name); 145 command::vncdisplay(user_name, arg.name);
146 } 146 }
147 147
148 SubCommand::Ttyconsole(arg) => { 148 SubCommand::Ttyconsole(arg) => {