aiken 1.1.20

Cardano smart contract language and toolchain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod simulate;

use clap::Subcommand;
use std::process;

/// Commands for working with transactions
#[derive(Subcommand)]
#[clap(disable_version_flag(true))]
pub enum Cmd {
    Simulate(simulate::Args),
}

pub fn exec(cmd: Cmd) -> miette::Result<()> {
    match cmd {
        Cmd::Simulate(args) => simulate::exec(args),
    }
    .map_err(|_| process::exit(1))
}