1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::process::Command; pub fn init() { Command::new("cargo") .args(&[ "generate", "--git", "https://github.com/SummaryPuppet/pillow-template", ]) .spawn() .expect("Error generating") .wait() .expect("Error waiting for child"); }