clankers-cli 0.1.5

Command-line interface for clankeRS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::process::Command;

use anyhow::{Context, Result};

pub async fn execute() -> Result<()> {
    println!("clankeRS test");
    let status = Command::new("cargo")
        .args(["test"])
        .status()
        .context("failed to run cargo test")?;

    if !status.success() {
        anyhow::bail!("cargo test failed");
    }
    Ok(())
}