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:
Malte Meiboom
2026-04-27 13:17:03 +02:00
parent c33feb1ee7
commit 799f6eb588
11 changed files with 183 additions and 13 deletions
+8 -1
View File
@@ -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(())