Complete skeleton dispatcher
- Complete the dispatcher for the 'introducer' and 'local' command. This is currently only a skeleton. - The 'introducer list' command is added.
This commit is contained in:
+8
-1
@@ -5,6 +5,8 @@ use crate::cli::cli_args::{CliArgs, HuskSubcommands};
|
||||
use crate::config::HuskConfigContainer;
|
||||
|
||||
pub mod daemon;
|
||||
pub mod introducer;
|
||||
pub mod local;
|
||||
|
||||
pub async fn dispatch(cli: CliArgs, config: HuskConfigContainer) -> Result<()> {
|
||||
|
||||
@@ -12,7 +14,12 @@ pub async fn dispatch(cli: CliArgs, config: HuskConfigContainer) -> Result<()> {
|
||||
HuskSubcommands::Daemon(subcmd) => {
|
||||
commands::daemon::dispatch(subcmd, config).await?;
|
||||
},
|
||||
_ => { println!("something else"); }
|
||||
HuskSubcommands::Introducer(subcmd) => {
|
||||
commands::introducer::dispatch(subcmd, config).await?;
|
||||
},
|
||||
HuskSubcommands::Local(subcmd) => {
|
||||
commands::local::dispatch(subcmd, config).await?;
|
||||
},
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user