feat: Added a --dangerously-skip-permissions flag to skip permission prompts for tool invocations
CI / All (ubuntu-latest) (push) Failing after 24s
CI / All (macos-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-08 15:17:21 -06:00
parent 5eb1daf18d
commit 209fbc9e41
2 changed files with 21 additions and 0 deletions
+6
View File
@@ -56,6 +56,12 @@ async fn main() -> Result<()> {
CompleteEnv::with_factory(Cli::command).complete();
let cli = Cli::parse();
if cli.dangerously_skip_permissions {
unsafe {
env::set_var("AUTO_CONFIRM", "true");
}
}
if let Some(shell) = cli.completions {
let mut cmd = Cli::command();
shell.generate_completions(&mut cmd);