xscript

Crates.ioxscript
lib.rsxscript
version0.3.0
sourcesrc
created_at2023-07-09 11:03:13.03974
updated_at2023-12-23 08:56:40.170162
descriptionA library for writing robust shell-script-like programs and running commands anywhere with ease.
homepage
repositoryhttps://github.com/silitics/xscript-rs/
max_upload_size
id911958
size60,044
Maximilian Köhl (koehlma)

documentation

README

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.

Commit count: 13

cargo fmt