refactor: rewrite in rust
This commit is contained in:
parent
20a3e8b437
commit
ed493cff29
72 changed files with 5684 additions and 3688 deletions
11
src/cli/commands/completions.rs
Normal file
11
src/cli/commands/completions.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use clap::CommandFactory;
|
||||
use clap_complete::{generate, Shell};
|
||||
use std::io;
|
||||
|
||||
use crate::cli::Cli;
|
||||
|
||||
pub fn run(shell: Shell) {
|
||||
let mut cmd = Cli::command();
|
||||
let name = cmd.get_name().to_string();
|
||||
generate(shell, &mut cmd, name, &mut io::stdout());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue