reef 0.0.28

a package to execute and log system commands
Documentation
use colored::*;
use log::{info, Level};
use reef::{Command, History, LogFormat};
use std::collections::HashMap;
use std::error::Error;
use std::result::Result;

fn main() -> Result<(), Box<dyn Error>> {
    // initialize logging
    reef::logger::init(Level::Info, LogFormat::Message, HashMap::new())?;

    info!("{}", "");
    info!("{}{}", "executing a few commands".yellow(), "...".clear());

    // git --version
    Command::new("git --version", &std::env::temp_dir()).exec()?;

    // git clone https:://gitlab.com/crates-rs/not.there.git
    match Command::new(
        "git clone https:://gitlab.com/crates-rs/not.there.git",
        &std::env::temp_dir(),
    )
    .exec()
    {
        Ok(_c) => panic!("did not expect 'git clone...' to succeed"),
        Err(e) => {
            info!("error:");
            info!("{}", e)
        }
    };

    Ok(())
}