feat: Added static completions via a --completions flag

This commit is contained in:
2025-10-24 10:56:34 -06:00
parent c13142f971
commit 59a3e3012b
5 changed files with 52 additions and 5 deletions
+5
View File
@@ -47,6 +47,11 @@ async fn main() -> Result<()> {
CompleteEnv::with_factory(Cli::command).complete();
let cli = Cli::parse();
if let Some(shell) = cli.completions {
let mut cmd = Cli::command();
shell.generate_completions(&mut cmd);
return Ok(());
}
if cli.tail_logs {
tail_logs(cli.disable_log_colors).await;
return Ok(());