Need help with xshell?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

matklad
145 Stars 8 Forks Other 52 Commits 6 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 17,245
Rust
Django
rust-la...
intelli...
38 commits
# 123,070
virtual...
centos
vmware
rhel
6 commits

xshell: Making Rust a Better Bash

xshell
provides a set of cross-platform utilities for writing ergonomic "bash" scripts.
use xshell::{cmd, read_file};

let name = "Julia"; let output = cmd!("echo hello {name}!").read()?; assert_eq!(output, "hello Julia!");

let err = read_file("feeling-lucky.txt").unwrap_err(); assert_eq!( err.to_string(), "feeling-lucky.txt: no such file or directory (os error 2)", );

See the docs for more.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.