Expand description
§just-run
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.
§Usage
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.
§Future
This crate focuses on convenience. It might expand to include async command execution or other features in the future, but it is not meant to cover all use cases.
Structs§
- Success
- Represents the successful UTF-8 encoded output of a command execution.
Enums§
- Error
- Represents the errors that can occur during command execution.
Functions§
- run
- Executes a system command with the specified arguments.