mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
api: Add clap_generate::Shell enum
This commit is contained in:
parent
5618ec39e5
commit
6a4cc8f9dd
1 changed files with 15 additions and 0 deletions
|
@ -37,6 +37,21 @@ use std::path::PathBuf;
|
|||
#[doc(inline)]
|
||||
pub use generators::Generator;
|
||||
|
||||
/// Shell with auto-generated completion script available.
|
||||
#[non_exhaustive]
|
||||
pub enum Shell {
|
||||
/// Bash shell
|
||||
Bash,
|
||||
/// Elvish shell
|
||||
Elvish,
|
||||
/// Fish shell
|
||||
Fish,
|
||||
/// PowerShell
|
||||
PowerShell,
|
||||
/// Zsh shell
|
||||
Zsh,
|
||||
}
|
||||
|
||||
/// Generate a file for a specified generator at compile time.
|
||||
///
|
||||
/// **NOTE:** to generate the file at compile time you must use a `build.rs` "Build Script"
|
||||
|
|
Loading…
Reference in a new issue