kaspa_cli_lib/modules/start.rs
1use crate::imports::*;
2
3#[derive(Default, Handler)]
4#[help("Start local node and open wallet")]
5pub struct Start;
6
7impl Start {
8 async fn main(self: Arc<Self>, ctx: &Arc<dyn Context>, _argv: Vec<String>, _cmd: &str) -> Result<()> {
9 // - TODO - check states
10
11 ctx.term().exec("wallet open").await?;
12 ctx.term().exec("node start").await?;
13
14 Ok(())
15 }
16}