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
177 Stars 13 Forks Other 116 Commits 6 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 15,154
Django
rust-la...
intelli...
imagema...
49 commits
# 264,703
Erlang
Shell
D
Termina...
28 commits
# 121,521
virtual...
centos
vmware
rhel
6 commits
# 126,484
Rust
Django
JavaFX
Shell
4 commits
# 169,435
Firefox
html5
SQLite
templat...
1 commit

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.