Crates.io | just-run |
lib.rs | just-run |
version | 0.1.0 |
source | src |
created_at | 2024-10-04 15:24:07.148421 |
updated_at | 2024-10-04 15:24:07.148421 |
description | Convenience crate for executing system commands with the expectation of successful termination and UTF-8 encoded output, for basic straightforward command execution scenarios. |
homepage | |
repository | https://github.com/plul/just-run |
max_upload_size | |
id | 1396701 |
size | 10,129 |
just-run
is a simple convenience crate for executing system commands with the expectation
of successful termination and UTF-8 encoded output. It aims to handle the most common case without
extensive configuration or edge case coverage.
use just_run::{run, Success};
let Success { stdout, stderr } = run("echo", ["Hello world!"]).expect("Command failed");
println!("{stdout}");
For more advanced use cases, consider checking out the duct
crate or
using the standard library tools directly.