feat: Added static completions via a --completions flag

This commit is contained in:
Dark-Alex-17 committed 2025-10-24 10:56:34 -06:00
1 parent a7f6ed4b16
commit 31f7f50c4a
5 files changed
+52 -5

No files matched your search

+4 -1
View File
@@ -2,7 +2,7 @@ mod completer;
use crate::cli::completer::{
agent_completer, macro_completer, model_completer, rag_completer, role_completer,
secrets_completer, session_completer,
secrets_completer, session_completer, ShellCompletion,
};
use anyhow::{Context, Result};
use clap::ValueHint;
@@ -130,6 +130,9 @@ pub struct Cli {
/// List all secrets stored in the Loki vault
#[arg(long, exclusive = true)]
pub list_secrets: bool,
/// Generate static shell completion scripts
#[arg(long, value_enum)]
pub completions: Option<ShellCompletion>,
}
impl Cli {