pub enum ShellKind {
Bash,
Zsh,
Fish,
Pwsh,
}
Variants§
Bash
Setup the bash shell environment
Zsh
Setup the zsh shell environment
Fish
Setup the fish shell environment
Pwsh
Setup the Windows Powershell environment
Trait Implementations§
Source§impl Clap for ShellKind
impl Clap for ShellKind
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
Source§impl FromArgMatches for ShellKind
impl FromArgMatches for ShellKind
Source§fn from_arg_matches(arg_matches: &ArgMatches) -> Option<Self>
fn from_arg_matches(arg_matches: &ArgMatches) -> Option<Self>
Source§fn update_from_arg_matches<'b>(&mut self, arg_matches: &ArgMatches)
fn update_from_arg_matches<'b>(&mut self, arg_matches: &ArgMatches)
Assign values from
ArgMatches
to self
.Source§impl Subcommand for ShellKind
impl Subcommand for ShellKind
Source§fn augment_subcommands<'b>(app: App<'b>) -> App<'b>
fn augment_subcommands<'b>(app: App<'b>) -> App<'b>
Source§fn augment_subcommands_for_update<'b>(app: App<'b>) -> App<'b>
fn augment_subcommands_for_update<'b>(app: App<'b>) -> App<'b>
Source§fn has_subcommand(name: &str) -> bool
fn has_subcommand(name: &str) -> bool
Test whether
Self
can parse a specific subcommandimpl Eq for ShellKind
impl StructuralPartialEq for ShellKind
Auto Trait Implementations§
impl Freeze for ShellKind
impl RefUnwindSafe for ShellKind
impl Send for ShellKind
impl Sync for ShellKind
impl Unpin for ShellKind
impl UnwindSafe for ShellKind
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.