pub struct Xonsh;Implementations§
Trait Implementations§
Source§impl Shell for Xonsh
impl Shell for Xonsh
Source§fn create_quoter<'a>(&self, data: Quotable<'a>) -> Quoter<'a>
fn create_quoter<'a>(&self, data: Quotable<'a>) -> Quoter<'a>
Create a quoter for the provided string.
Source§fn get_config_path(&self, home_dir: &Path) -> PathBuf
fn get_config_path(&self, home_dir: &Path) -> PathBuf
Return the path in which commands, aliases, and other settings will be configured.
Source§fn get_env_path(&self, home_dir: &Path) -> PathBuf
fn get_env_path(&self, home_dir: &Path) -> PathBuf
Return the path in which environment settings will be defined.
Source§fn get_profile_paths(&self, home_dir: &Path) -> Vec<PathBuf>
fn get_profile_paths(&self, home_dir: &Path) -> Vec<PathBuf>
Return a list of all possible profile/rc/config paths.
Ordered from most to least common/applicable.
Source§fn create_wrapped_command(&self, line: &str) -> Command
fn create_wrapped_command(&self, line: &str) -> Command
Create a command that wraps the provided command line in the current shell.
Source§fn create_wrapped_command_with(&self, line: OsString) -> Command
fn create_wrapped_command_with(&self, line: OsString) -> Command
Create a command that wraps the provided value in the current shell.
Source§fn format_env(&self, key: &str, value: Option<&str>) -> String
fn format_env(&self, key: &str, value: Option<&str>) -> String
Format an environment variable by either setting or unsetting the value.
Source§fn format_env_set(&self, key: &str, value: &str) -> String
fn format_env_set(&self, key: &str, value: &str) -> String
Format an environment variable that will be set to the entire shell.
Source§fn format_env_unset(&self, key: &str) -> String
fn format_env_unset(&self, key: &str) -> String
Format an environment variable that will be unset from the entire shell.
Source§fn format_path_prepend(&self, paths: &[String]) -> String
fn format_path_prepend(&self, paths: &[String]) -> String
Format the provided paths to prepend the
PATH environment variable.Source§fn format_path_set(&self, paths: &[String]) -> String
fn format_path_set(&self, paths: &[String]) -> String
Format the provided paths to override the
PATH environment variable.Source§fn format_hook(&self, hook: Hook) -> Result<String, ShellError>
fn format_hook(&self, hook: Hook) -> Result<String, ShellError>
Format a hook for the current shell.
Source§fn get_env_regex(&self) -> Regex
fn get_env_regex(&self) -> Regex
Return a regex pattern for matching against environment variables.
Source§fn quote_with(&self, value: Quotable<'_>) -> String
fn quote_with(&self, value: Quotable<'_>) -> String
Quote the provided value.
Source§impl ShellExt for Xonsh
impl ShellExt for Xonsh
Source§fn join_exe_args<T, I, A>(&self, exe: T, args: I, quote: bool) -> OsString
fn join_exe_args<T, I, A>(&self, exe: T, args: I, quote: bool) -> OsString
Join an executable and its arguments into a single string.
impl Copy for Xonsh
Auto Trait Implementations§
impl Freeze for Xonsh
impl RefUnwindSafe for Xonsh
impl Send for Xonsh
impl Sync for Xonsh
impl Unpin for Xonsh
impl UnsafeUnpin for Xonsh
impl UnwindSafe for Xonsh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more