Skip to content

Commit

Permalink
feat: publicize Opts and handle_command
Browse files Browse the repository at this point in the history
  • Loading branch information
EthnTuttle committed May 7, 2024
1 parent 2541b97 commit d49492c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fedimint-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf>,
Expand Down Expand Up @@ -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?;
Expand Down

0 comments on commit d49492c

Please sign in to comment.