use Error;
use Command;
/// Execute a given command and return its
/// Stdout output as string.
///
/// # Errors
/// If the given command has a non-zero status
/// code, an [`Error`] of [`ErrorKind::Status`]
/// is returned.
///
/// # Example
/// ```
/// let output = exec(&["ls", "-lisah"]).unwrap();
/// ```