shell-candy 0.2.1

🍬 `shell-candy` wraps [`std::process::Command`], providing a more straightforward mechanism for handling individual log lines.
Documentation

🍬 shell-candy

This crate wraps std::process::Command, providing an easier mechanism for handling individual log lines from external tools.

Usage

use shell_candy::{ShellTaskLog, ShellTask};

let task = ShellTask::new("rustc --version");
task.run(|line| {
  match line {
    ShellTaskLog::Stdout(message) | ShellTaskLog::Stderr(message) => eprintln!("info: {}", &message),
  }
})

More information

See the docs for more detailed information and example usage.