Struct sauce::shell::context::Context [−][src]
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]
data_dir: PathBuf,
config_dir: PathBuf,
home_dir: PathBuf,
filter_options: FilterOptions<'a>,
path: Option<&'a str>,
file: Option<&'a str>
) -> Result<Self>
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]
&mut self,
shell_kind: &dyn Shell,
command: &str,
output: &mut Output
)
pub fn create_saucefile(&mut self, output: &mut Output)
[src]
pub fn move_saucefile(
&self,
output: &mut Output,
destination: &Path,
copy: bool
)
[src]
&self,
output: &mut Output,
destination: &Path,
copy: bool
)
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]
&mut self,
shell_kind: &dyn Shell,
autoload: bool,
output: &mut Output
)
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]
&mut self,
raw_values: &[(T, T)],
output: &mut Output
)
pub fn set_alias<T: AsRef<str>>(
&mut self,
raw_values: &[(T, T)],
output: &mut Output
)
[src]
&mut self,
raw_values: &[(T, T)],
output: &mut Output
)
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]
&mut self,
values: &[(T, T)],
global: bool,
output: &mut Output
)
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,