pub enum Shell {
Bash,
Zsh,
Fish,
Powershell,
}Expand description
The shells headwater completions writes a script for.
§Four, where clap_complete offers five
clap_complete::Shell carries Elvish as well. It is not here, and the
reason is spec 6’s own rule about the CLI grammar block: a name that block
declares either runs or states its wait. Clause 8 of
#321 names four
shells, the grammar block names the same four, and each of the four is a
script this repository has run rather than a name passed through to a
generator. A fifth would be a name in the grammar that nothing here has
ever executed.
A name outside the four is refused by clap with the four printed, because
this is the value parser rather than a match arm underneath one.
Variants§
Implementations§
Trait Implementations§
impl Copy for Shell
impl Eq for Shell
impl StructuralPartialEq for Shell
Auto Trait Implementations§
impl Freeze 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