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

pub struct ScriptOptions {
    pub runner: Option<String>,
    pub capture_output: bool,
    pub exit_on_error: bool,
    pub print_commands: bool,
}

Options available for invoking the script

Fields

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

False to print the output to the parent process, or capture and return the output (default)

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

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

Methods

impl ScriptOptions
[src]

Returns new instance

Trait Implementations

impl Debug for ScriptOptions
[src]

Formats the value using the given formatter. Read more

impl Clone for ScriptOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ScriptOptions
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations