From d49492c8bd539e352f6773a1da7b5007e449a01e Mon Sep 17 00:00:00 2001 From: Ethan Tuttle Date: Mon, 6 May 2024 21:47:31 -0400 Subject: [PATCH] feat: publicize Opts and handle_command --- fedimint-cli/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fedimint-cli/src/lib.rs b/fedimint-cli/src/lib.rs index e455c53114c..ff5ca9200c8 100644 --- a/fedimint-cli/src/lib.rs +++ b/fedimint-cli/src/lib.rs @@ -184,7 +184,7 @@ impl fmt::Display for CliError { #[derive(Parser, Clone)] #[command(version)] -struct Opts { +pub struct Opts { /// The working directory of the client containing the config and db #[arg(long = "data-dir", env = FM_CLIENT_DIR_ENV)] data_dir: Option, @@ -663,7 +663,7 @@ impl FedimintCli { .map_err_cli() } - async fn handle_command(&mut self, cli: Opts) -> CliOutputResult { + pub async fn handle_command(&mut self, cli: Opts) -> CliOutputResult { match cli.command.clone() { Command::InviteCode { peer } => { let db = cli.load_rocks_db().await?;