Lines Matching full:shell
6 /// Describes which shell to produce a completions file for
9 pub enum Shell { enum
10 /// Generates a .bash completion file for the Bourne Again SHell (BASH)
12 /// Generates a .fish completion file for the Friendly Interactive SHell (fish)
14 /// Generates a completion file for the Z SHell (ZSH)
22 impl Shell { impl
29 impl FromStr for Shell { implementation
34 "ZSH" | _ if s.eq_ignore_ascii_case("zsh") => Ok(Shell::Zsh), in from_str()
35 "FISH" | _ if s.eq_ignore_ascii_case("fish") => Ok(Shell::Fish), in from_str()
36 "BASH" | _ if s.eq_ignore_ascii_case("bash") => Ok(Shell::Bash), in from_str()
37 "POWERSHELL" | _ if s.eq_ignore_ascii_case("powershell") => Ok(Shell::PowerShell), in from_str()
38 "ELVISH" | _ if s.eq_ignore_ascii_case("elvish") => Ok(Shell::Elvish), in from_str()
46 impl fmt::Display for Shell { implementation
49 Shell::Bash => write!(f, "BASH"), in fmt()
50 Shell::Fish => write!(f, "FISH"), in fmt()
51 Shell::Zsh => write!(f, "ZSH"), in fmt()
52 Shell::PowerShell => write!(f, "POWERSHELL"), in fmt()
53 Shell::Elvish => write!(f, "ELVISH"), in fmt()