[][src]Crate reef

This crate provides a library for executing system commands.

Usage

This crate is on crates.io and can be used by adding reef to your dependencies in your project's Cargo.toml.

[dependencies]
reef = "0"

If you're using Rust 2015, then you'll also need to add it to your crate root:

extern crate reef;

Example: execute a command that is in the system PATH

note: git must be available in the system PATH for this example to work.

use reef::Command;
let git_version = Command::new("git --version").exec();
assert!(git_version.stdout.contains("git version"));

Re-exports

pub use crate::duration::Duration;

Modules

duration

Structs

Command

Metadata about a std::process::Command

Commands
Env

Metadata about the environment

Error

The Error type.

Paths
Secrets

Enums

ErrorKind

The kind of an error.

Status

Type Definitions

Result

Convenient wrapper around std::Result.