clankers-cli 0.1.3

Command-line interface for clankeRS
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 fn execute() -> Result<()> {
    println!("clankeRS run");
    let status = Command::new("cargo")
        .args(["run", "--release"])
        .status()
        .context("failed to run cargo run")?;

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