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
runner: Option<String>
Defines the requested runner (defaults to cmd in windows and sh for other platforms)
capture_output: bool
False to print the output to the parent process, or capture and return the output (default)
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)
Methods
impl ScriptOptions[src]
fn new() -> ScriptOptions[src]
Returns new instance
Trait Implementations
impl Debug for ScriptOptions[src]
impl Clone for ScriptOptions[src]
fn clone(&self) -> ScriptOptions[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for ScriptOptions[src]
fn eq(&self, __arg_0: &ScriptOptions) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ScriptOptions) -> bool[src]
This method tests for !=.