#run-command #programs #running #anywhere #ease #robust #variables

xscript

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

5 unstable releases

0.3.0 Dec 23, 2023
0.2.0 Jul 23, 2023
0.1.2 Jul 9, 2023
0.1.1 Jul 9, 2023
0.1.0 Jul 9, 2023

#5 in #anywhere

Download history 126/week @ 2024-07-22 187/week @ 2024-07-29 165/week @ 2024-08-05 162/week @ 2024-08-12 83/week @ 2024-08-19 208/week @ 2024-08-26 179/week @ 2024-09-02 211/week @ 2024-09-09 92/week @ 2024-09-16 204/week @ 2024-09-23 227/week @ 2024-09-30 179/week @ 2024-10-07 172/week @ 2024-10-14 162/week @ 2024-10-21 183/week @ 2024-10-28 147/week @ 2024-11-04

686 downloads per month

MIT/Apache

48KB
1.5K SLoC

XScript

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

XScript Crate Docs License: MIT/Apache

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

let mut env = LocalEnv::current_dir()?.with_vars(vars! {
    RUSTDOCFLAGS = "--cfg docsrs --cfg xscript_unstable",
    RUSTFLAGS = "--cfg xscript_unstable",
});

let project_root = read_str!(env, ["git", "rev-parse", "--show-toplevel"])?;
env.change_dir(project_root)?;

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

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.

Dependencies

~0–11MB
~126K SLoC