kaspa_cli_lib/modules/
close.rs

1use crate::imports::*;
2
3#[derive(Default, Handler)]
4#[help("Close an opened wallet")]
5pub struct Close;
6
7impl Close {
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}