1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/env run-cargo-script //! ```cargo //! [dependencies] //! failure = "*" //! commandspec = "*" //! ``` #[macro_use] extern crate commandspec; extern crate failure; use failure::Error; fn main() -> Result<(), Error> { sh_execute!(r###"#!/bin/bash echo hi "###)?; Ok(()) }