cmd_lib 0.2.3

Common rust commandline macros and utils, to write shell script like tasks easily
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod lib;
use lib::{run, CmdResult, FunResult};

fn main() -> CmdResult {
    info!("Running command xxx ...");
    warn!("Running command failed");
    err!("Copying file failed");
    let reason = "disk is full";
    die!("Command exit unexpectedly: {}", reason);

    Ok(())
}