summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 3dcf923..76820ce 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -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> {