https://github.com/kizzycode/ezexec-rust
A simple API to execute binaries or shell commands via `std::process::Command`
https://github.com/kizzycode/ezexec-rust
Last synced: about 2 months ago
JSON representation
A simple API to execute binaries or shell commands via `std::process::Command`
- Host: GitHub
- URL: https://github.com/kizzycode/ezexec-rust
- Owner: KizzyCode
- Created: 2021-09-09T17:20:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-31T03:05:48.000Z (over 2 years ago)
- Last Synced: 2025-03-07T10:18:56.933Z (3 months ago)
- Language: Rust
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE BSD 2-CLAUSE.md
Awesome Lists containing this project
README
[](https://opensource.org/licenses/BSD-2-Clause)
[](https://opensource.org/licenses/MIT)
[](https://ci.appveyor.com/project/KizzyCode/ezexec-rust)
[](https://docs.rs/ezexec)
[](https://crates.io/crates/ezexec)
[](https://crates.io/crates/ezexec)
[](https://deps.rs/crate/ezexec/0.4.1)# `ezexec`
Welcome to `ezexec` 🎉`ezexec` provides a simple API to execute binaries or shell commands. Furthermore it implements a trivial but usually
good-enough API to find a binary in `PATH` or to get the current shell.## Example
```rust
use ezexec::{ ExecBuilder, error::Error };fn list() -> Result<(), Error> {
// Lists all files in the current directory and forwards the output to the parent's stdout
ExecBuilder::with_shell("ls")?
.spawn_transparent()?
.wait()?;
Ok(())
}
```