ax 2.18.2

ax distributed event databank and command line tool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod keygen;

use crate::cmd::{swarms::keygen::KeygenOpts, AxCliCommand};
use futures::Future;

#[derive(clap::Subcommand, Clone, Debug)]
/// manage swarms
pub enum SwarmsOpts {
    /// Generate a new swarm key.
    Keygen(KeygenOpts),
}

pub fn run(opts: SwarmsOpts, json: bool) -> Box<dyn Future<Output = ()> + Unpin> {
    match opts {
        SwarmsOpts::Keygen(opt) => keygen::SwarmsKeygen::output(opt, json),
    }
}