#[non_exhaustive]pub enum Shell {
Bash,
Powershell,
Other(String),
}Expand description
defaultShell and a command hook’s shell.
Docs: defaultShell.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bash
Claude Code runs your ! commands in Bash.
Powershell
Claude Code runs your ! commands in PowerShell.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shell
impl<'de> Deserialize<'de> for Shell
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Shell
Source§impl Ord for Shell
impl Ord for Shell
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Shell
impl PartialOrd for Shell
impl StructuralPartialEq for Shell
Auto Trait Implementations§
impl Forget for Shell
impl Freeze for Shell
impl Move for Shell
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnsafeUnpin for Shell
impl UnwindSafe for Shell
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