just-run 0.1.0

Convenience crate for executing system commands with the expectation of successful termination and UTF-8 encoded output, for basic straightforward command execution scenarios.
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented2 out of 4 items with examples
  • Size
  • Source code size: 10.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.72 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • plul/just-run
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • plul

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}");

See also

For more advanced use cases, consider checking out the duct crate or using the standard library tools directly.