diff options
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2,6 +2,7 @@ use std::path::PathBuf; use clap::Parser; use clap::Subcommand; +use clap_complete::Shell; use crate::config::GitSetting; use crate::error::TextProviderError; @@ -92,6 +93,12 @@ pub enum Command { #[clap(subcommand)] range: Option<ShowRange>, }, + /// Generation completions for the shell of your choice, available options: + /// [bash, elvish, fish, powershell, zsh] + GenerationCompletions { + #[clap(value_parser)] + shell: Shell, + }, } fn text_provider_parser(s: &str) -> Result<TextProvider, String> { |