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)

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

Sets the -e flag in the script to exit on any command error found inside the script (not available for windows)

Sets the -x flag in the script to print each script command before invocation (not available for windows)

Methods

impl ScriptOptions
[src]

[src]

Returns new instance

Trait Implementations

impl Debug for ScriptOptions
[src]

[src]

Formats the value using the given formatter.

impl Clone for ScriptOptions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ScriptOptions
[src]

[src]

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

[src]

This method tests for !=.