• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.vscode/H03-May-2022-65

examples/H03-May-2022-11291

src/H03-May-2022-1,122677

tests/it/H03-May-2022-690567

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D04-Sep-202174 65

.gitignoreH A D04-Sep-202189 87

CHANGELOG.mdH A D04-Sep-20211.1 KiB6536

Cargo.lockH A D04-Sep-2021373 1513

Cargo.tomlH A D04-Sep-2021968 2523

Cargo.toml.orig-cargoH A D04-Sep-2021546 1713

LICENSE-APACHEH A D04-Sep-202110.6 KiB202169

LICENSE-MITH A D04-Sep-20211,023 2421

README.mdH A D04-Sep-2021485 2014

README.md

1# xshell: Making Rust a Better Bash
2
3`xshell` provides a set of cross-platform utilities for writing ergonomic "bash" scripts.
4
5```rust
6use xshell::{cmd, read_file};
7
8let name = "Julia";
9let output = cmd!("echo hello {name}!").read()?;
10assert_eq!(output, "hello Julia!");
11
12let err = read_file("feeling-lucky.txt").unwrap_err();
13assert_eq!(
14    err.to_string(),
15    "`feeling-lucky.txt`: no such file or directory (os error 2)",
16);
17```
18
19See [the docs](https://docs.rs/xshell) for more.
20