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)) }