[][src]Struct reef::Command

pub struct Command { /* fields omitted */ }

Metadata about a std::process::Command

Implementations

impl Command[src]

pub fn execute(command: &str) -> Result<Command>[src]

pub fn execute_in(dir: &Path, command: &str) -> Result<Command>[src]

pub fn exec(command: &str) -> Command[src]

execute a command

Example

use reef::Command;
let git_version = Command::exec("git --version");

pub fn exec_in(dir: &Path, command: &str) -> Command[src]

execute a command in a specific directory

Example

use reef::Command;
let path = std::env::temp_dir().join("test.rb");
let git_version = Command::exec_in(&path,"git --version");

pub fn dir(&self) -> PathBuf[src]

The working directory

pub fn name(&self) -> &str[src]

The command name

pub fn success(&self) -> bool[src]

pub fn success_symbol(&self) -> String[src]

pub fn exit_code(&self) -> i32[src]

The exit code of the process

pub fn stdout(&self) -> &str[src]

pub fn stderr(&self) -> &str[src]

pub fn duration(&self) -> &Duration[src]

pub fn tags(&self) -> &HashSet<String>[src]

pub fn set_tags(&mut self, tags: &HashSet<String>)[src]

pub fn uuid(&self) -> &str[src]

pub fn duration_string(&self) -> String[src]

pub fn summary(&self) -> String[src]

pub fn details(&self) -> Vec<String>[src]

pub fn start_utc(&self) -> DateTime<Utc>[src]

pub fn start_local(&self) -> DateTime<Local>[src]

pub fn env(&self) -> &Env[src]

pub fn to_json(&self) -> Result<String>[src]

pub fn log(&self) -> Result<()>[src]

pub fn log_to(&self, path: &Path) -> Result<()>[src]

Trait Implementations

impl Clone for Command[src]

impl Debug for Command[src]

impl Default for Command[src]

impl<'de> Deserialize<'de> for Command[src]

impl From<Error> for Command[src]

impl Serialize for Command[src]

impl<'_> TryFrom<&'_ Command> for Vec<u8>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Vec<u8>> for Command[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,