pub enum Shell {
Bash,
Zsh,
Fish,
}Expand description
Supported shell types for completion generation
This enum represents the shells for which we can generate completion scripts.
§Examples
use flag_rs::shell::Shell;
use flag_rs::Command;
let cmd = Command::new("myapp");
// Generate Bash completion script
let bash_script = cmd.generate_completion(Shell::Bash);
// Generate Zsh completion script
let zsh_script = cmd.generate_completion(Shell::Zsh);
// Generate Fish completion script
let fish_script = cmd.generate_completion(Shell::Fish);Variants§
Bash
Bash shell (most common on Linux)
Zsh
Zsh shell (default on macOS)
Fish
Fish shell (modern alternative shell)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shell
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin 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