Mercurial > hg > Members > anatofuz > ie-virsh
comparison src/main.rs @ 25:da27437a94b0
Merge remote-tracking branch 'self/master'
author | AnaTofuZ <anatofuz@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 18:38:03 +0900 |
parents | e8ba0f63c227 0ee235caebc5 |
children | afec42bdd5ab |
comparison
equal
deleted
inserted
replaced
24:e8ba0f63c227 | 25:da27437a94b0 |
---|---|
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)] |
143 SubCommand::Destroy(arg) => { | 143 SubCommand::Destroy(arg) => { |
144 user::set_root_id(); | 144 user::set_root_id(); |
145 command::destroy(&user_name, arg.name); | 145 command::destroy(&user_name, arg.name); |
146 } | 146 } |
147 | 147 |
148 SubCommand::VNCDisplay(arg) => { | 148 SubCommand::Vncdisplay(arg) => { |
149 user::set_root_id(); | 149 user::set_root_id(); |
150 command::vncdisplay(&user_name, arg.name); | 150 command::vncdisplay(&user_name, arg.name); |
151 } | 151 } |
152 | 152 |
153 SubCommand::Ttyconsole(arg) => { | 153 SubCommand::Ttyconsole(arg) => { |