add shell completion script generation

This commit is contained in:
qwjyh 2024-03-17 04:08:47 +09:00
parent f5fe3d6580
commit 8396b8c97d
5 changed files with 33 additions and 1 deletions

View file

@ -55,6 +55,11 @@ pub(crate) enum Commands {
/// Check config files.
Check {},
/// Generate completion script.
Completion {
shell: clap_complete::Shell,
}
}
#[derive(Args, Debug)]