kaspa_cli_lib/modules/open.rs
1use crate::imports::*;
2
3#[derive(Default, Handler)]
4#[help("Open a wallet (shorthand for 'wallet open [<name>]')")]
5pub struct Open;
6
7impl Open {
8 async fn main(self: Arc<Self>, ctx: &Arc<dyn Context>, _argv: Vec<String>, cmd: &str) -> Result<()> {
9 Ok(ctx.term().exec(format!("wallet {cmd}")).await?)
10 }
11}