Struct sauce::shell::context::Context[][src]

pub struct Context<'a> {
    pub sauce_path: PathBuf,
    // some fields omitted
}

Fields

sauce_path: PathBuf

Implementations

impl<'a> Context<'a>[src]

pub fn new(
    data_dir: PathBuf,
    config_dir: PathBuf,
    home_dir: PathBuf,
    filter_options: FilterOptions<'a>,
    path: Option<&'a str>,
    file: Option<&'a str>
) -> Result<Self>
[src]

pub fn set_settings(&mut self, settings: Settings)[src]

pub fn load_settings(&mut self, output: &mut Output)[src]

pub fn settings(&self) -> &Settings[src]

pub fn settings_mut(&mut self) -> &mut Settings[src]

pub fn init_shell(&mut self, shell_kind: &dyn Shell, output: &mut Output)[src]

pub fn execute_shell_command(
    &mut self,
    shell_kind: &dyn Shell,
    command: &str,
    output: &mut Output
)
[src]

pub fn create_saucefile(&mut self, output: &mut Output)[src]

pub fn move_saucefile(
    &self,
    output: &mut Output,
    destination: &Path,
    copy: bool
)
[src]

pub fn edit_saucefile(&mut self, shell_kind: &dyn Shell, output: &mut Output)[src]

pub fn show(&mut self, target: Target, output: &mut Output)[src]

pub fn clear(&mut self, shell_kind: &dyn Shell, output: &mut Output)[src]

pub fn execute(
    &mut self,
    shell_kind: &dyn Shell,
    autoload: bool,
    output: &mut Output
)
[src]

pub fn cascade_paths(&self) -> impl Iterator<Item = PathBuf>[src]

pub fn set_var<T: AsRef<str>>(
    &mut self,
    raw_values: &[(T, T)],
    output: &mut Output
)
[src]

pub fn set_alias<T: AsRef<str>>(
    &mut self,
    raw_values: &[(T, T)],
    output: &mut Output
)
[src]

pub fn set_function(&mut self, name: &str, body: &str, output: &mut Output)[src]

pub fn set_config<T: AsRef<str>>(
    &mut self,
    values: &[(T, T)],
    global: bool,
    output: &mut Output
)
[src]

Trait Implementations

impl<'a> Debug for Context<'a>[src]

impl<'a> Default for Context<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Context<'a>

impl<'a> Send for Context<'a>

impl<'a> Sync for Context<'a>

impl<'a> Unpin for Context<'a>

impl<'a> UnwindSafe for Context<'a>

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