dev_runner 0.1.2

A CLI tool to run development commands in a project via a interactive menu
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::process::Command;

pub fn cli_execute(cmd: &str) {
    println!("⚙ Executing {} 🚀", cmd);

    let mut child = Command::new("sh") // or "cmd" on Windows
        .arg("-c")
        .arg(cmd)
        .spawn()
        .expect("Failed to start command");

    child.wait().expect("Failed to wait on command");
}