shell-rs
shell-rs is rust reimplementation of common coreutils APIs.
Usage
Add this to Cargo.toml
:
[]
= "0.1.2"
Add this to your crate:
extern crate shell_rs as shell;
Examples
Make directories recursively:
use ;
let mut options = new;
options.recursive = true;
options.mode = 0o700;
let ret = mkdir;
assert_eq!;
Expand environment variables:
use expand_env;
let s = expand_env;
let pwd = current_dir.unwrap;
let home = home_dir.unwrap;
let s2 = format!;
assert_eq!;
Related projects
- coreutils, cross-platform Rust rewrite of the GNU coreutils
- fs_extra, expanding opportunities standard library std::fs and std::io
License
This library is release in Apache License.