aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-04-25 17:41:44 +0200
committerGitHub <noreply@github.com>2021-04-25 17:41:44 +0200
commitd89e3e9e697a675b1a1d186dad1ea673ae9a199a (patch)
tree809c8da46a25c87b36fe8d20ffba40b62f36eff5 /src/cli.rs
parentMerge pull request #356 from zellij-org/add-auto-release (diff)
parentfixup! Add subcommand to generate completions (diff)
downloadsl0ppij-d89e3e9e697a675b1a1d186dad1ea673ae9a199a.tar.gz
sl0ppij-d89e3e9e697a675b1a1d186dad1ea673ae9a199a.tar.xz
sl0ppij-d89e3e9e697a675b1a1d186dad1ea673ae9a199a.zip
Merge pull request #369 from matthiasbeyer/clap-generate-shellcompletion
Add subcommand to generate completions, remove build.rs
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 008fb28c..ba6911d9 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -51,4 +51,7 @@ pub enum ConfigCli {
/// Disables loading of configuration file at default location
clean: bool,
},
+
+ #[structopt(name = "generate-completion")]
+ GenerateCompletion { shell: String },
}