XScript

A library for writing robust shell-script-like programs and running commands anywhere with ease.

XScript Crate Docs License: MIT/Apache

```rust use xscript::{read_str, run, vars, Run, LocalEnv};

let mut env = LocalEnv::currentdir()?.withvars(vars! { RUSTDOCFLAGS = "--cfg docsrs --cfg xscriptunstable", RUSTFLAGS = "--cfg xscriptunstable", });

let projectroot = readstr!(env, ["git", "rev-parse", "--show-toplevel"])?; env.changedir(projectroot)?;

let cargoargs = ["+nightly"]; let docargs = ["--lib", "--all-features"]; run!(env, ["cargo", ...cargoargs, "doc", ...docargs])?; ```

Checkout the documentation for details.

⚖️ Licensing

This project is licensed under either MIT or Apache 2.0 at your opinion. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache 2.0 license, shall be dual licensed as above, without any additional terms or conditions.


Made with ❤️ for OSS by Silitics.