shellfn 0.2.0

Attribute-like proc macro which reduces the amount of code required to call shell commands and parse the results
Documentation
1
2
3
4
5
6
7
8
9
10
11
use shellfn::shell;
use std::error::Error;

#[shell(cmd = "python -m $MODULE")]
fn run(module: &str) -> Result<String, Box<dyn Error>> {
    ""
}

fn main() -> Result<(), Box<dyn Error>> {
    run("calendar").map(|output| println!("{}", output))
}