1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::imports::*;

#[derive(Default, Handler)]
#[help("Start local node and open wallet")]
pub struct Start;

impl Start {
    async fn main(self: Arc<Self>, ctx: &Arc<dyn Context>, _argv: Vec<String>, _cmd: &str) -> Result<()> {
        // - TODO - check states

        ctx.term().exec("wallet open").await?;
        ctx.term().exec("node start").await?;

        Ok(())
    }
}