Commit 6cdae8a0 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

cli: change command generate to completions

parent 10223d63
...@@ -31,7 +31,7 @@ enum Commands { ...@@ -31,7 +31,7 @@ enum Commands {
listen: String, listen: String,
}, },
/// Generate auto complete for shell /// Generate auto complete for shell
Generate { shell: Shell }, Completions { shell: Shell },
} }
#[derive(Subcommand, Clone)] #[derive(Subcommand, Clone)]
...@@ -70,7 +70,7 @@ pub async fn system() { ...@@ -70,7 +70,7 @@ pub async fn system() {
let _ = th.await; let _ = th.await;
} }
} }
Commands::Generate { shell } => { Commands::Completions { shell } => {
let mut cli_gen = Cli::command(); let mut cli_gen = Cli::command();
generate(shell, &mut cli_gen, "tenjin", &mut io::stdout()); generate(shell, &mut cli_gen, "tenjin", &mut io::stdout());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment