assay-cli 3.12.0

CLI for Assay
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod fmt;
pub mod migrate;
pub mod validate;

use crate::cli::args::{PolicyArgs, PolicyCommand};

pub async fn run(args: PolicyArgs) -> anyhow::Result<i32> {
    match args.cmd {
        PolicyCommand::Validate(a) => validate::run(a).await,
        PolicyCommand::Migrate(a) => migrate::run(a).await,
        PolicyCommand::Fmt(a) => fmt::run(a).await,
    }
}