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

xscript

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

6 releases (3 breaking)

new 0.4.0 Jan 10, 2025
0.3.0 Dec 23, 2023
0.2.0 Jul 23, 2023
0.1.2 Jul 9, 2023

#2 in #anywhere

Download history 118/week @ 2024-09-22 297/week @ 2024-09-29 185/week @ 2024-10-06 171/week @ 2024-10-13 164/week @ 2024-10-20 182/week @ 2024-10-27 168/week @ 2024-11-03 198/week @ 2024-11-10 174/week @ 2024-11-17 217/week @ 2024-11-24 73/week @ 2024-12-01 96/week @ 2024-12-08 142/week @ 2024-12-15 185/week @ 2024-12-22 121/week @ 2024-12-29 367/week @ 2025-01-05

825 downloads per month

MIT/Apache

42KB
1K 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–8.5MB
~65K SLoC