11use super :: global;
22
33pub mod args;
4- pub mod update;
54pub mod edit;
65pub mod hash;
76pub mod help;
@@ -10,6 +9,7 @@ pub mod op;
109pub mod send;
1110pub mod sign;
1211pub mod simulate;
12+ pub mod update;
1313pub mod xdr;
1414
1515pub use args:: Args ;
@@ -40,8 +40,6 @@ pub enum Cmd {
4040
4141#[ derive( thiserror:: Error , Debug ) ]
4242pub enum Error {
43- #[ error( transparent) ]
44- Update ( #[ from] update:: Error ) ,
4543 #[ error( transparent) ]
4644 Hash ( #[ from] hash:: Error ) ,
4745 #[ error( transparent) ]
@@ -58,19 +56,21 @@ pub enum Error {
5856 Args ( #[ from] args:: Error ) ,
5957 #[ error( transparent) ]
6058 Simulate ( #[ from] simulate:: Error ) ,
59+ #[ error( transparent) ]
60+ Update ( #[ from] update:: Error ) ,
6161}
6262
6363impl Cmd {
6464 pub async fn run ( & self , global_args : & global:: Args ) -> Result < ( ) , Error > {
6565 match self {
66- Cmd :: Update ( cmd) => cmd. run ( global_args) . await ?,
6766 Cmd :: Hash ( cmd) => cmd. run ( global_args) ?,
6867 Cmd :: New ( cmd) => cmd. run ( global_args) . await ?,
6968 Cmd :: Edit ( cmd) => cmd. run ( global_args) ?,
7069 Cmd :: Operation ( cmd) => cmd. run ( global_args) . await ?,
7170 Cmd :: Send ( cmd) => cmd. run ( global_args) . await ?,
7271 Cmd :: Sign ( cmd) => cmd. run ( global_args) . await ?,
7372 Cmd :: Simulate ( cmd) => cmd. run ( global_args) . await ?,
73+ Cmd :: Update ( cmd) => cmd. run ( global_args) . await ?,
7474 } ;
7575 Ok ( ( ) )
7676 }
0 commit comments