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]
impl ScriptOptionspub fn new() -> ScriptOptions[src]
pub fn new() -> ScriptOptionsReturns new instance
Trait Implementations
impl Debug for ScriptOptions[src]
impl Debug for ScriptOptionsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ScriptOptions[src]
impl Clone for ScriptOptionsfn clone(&self) -> ScriptOptions[src]
fn clone(&self) -> ScriptOptionsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for ScriptOptions[src]
impl PartialEq for ScriptOptionsfn eq(&self, other: &ScriptOptions) -> bool[src]
fn eq(&self, other: &ScriptOptions) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ScriptOptions) -> bool[src]
fn ne(&self, other: &ScriptOptions) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ScriptOptions
impl Send for ScriptOptionsimpl Sync for ScriptOptions
impl Sync for ScriptOptions