Struct run_script::types::ScriptOptions[][src]

pub struct ScriptOptions {
    pub runner: Option<String>,
    pub working_directory: Option<PathBuf>,
    pub input_redirection: IoOptions,
    pub output_redirection: IoOptions,
    pub exit_on_error: bool,
    pub print_commands: bool,
}

Options available for invoking the script

Fields

runner: Option<String>

Defines the requested runner (defaults to cmd in windows and sh for other platforms)

working_directory: Option<PathBuf>

The working directory of the invocation

input_redirection: IoOptions

Default is IoOptions::Inherit

output_redirection: IoOptions

Default is IoOptions::Pipe (only pipe enables to capture the output)

exit_on_error: bool

Sets -e flag. Will exit on any error while running the script (not available for windows)

print_commands: bool

Sets -x flag for printing each script command before invocation (not available for windows)

Implementations

impl ScriptOptions[src]

pub fn new() -> ScriptOptions[src]

Returns new instance

Trait Implementations

impl Clone for ScriptOptions[src]

impl Debug for ScriptOptions[src]

impl PartialEq<ScriptOptions> for ScriptOptions[src]

impl StructuralPartialEq for ScriptOptions[src]

Auto Trait Implementations

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> 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>,