pub enum PermissionMode {
Default,
AcceptEdits,
BypassPermissions,
DontAsk,
Plan,
Auto,
}Expand description
Permission mode for --permission-mode.
Variants§
Default
Default interactive permissions.
AcceptEdits
Auto-accept file edits.
BypassPermissions
use claude_wrapper::dangerous::DangerousClient instead; direct BypassPermissions usage is a footgun and will go away in a future major release
Bypass all permission checks.
Deprecated. Reaching for this variant directly puts a
bypass-mode query one keystroke away in any code path, which
is exactly the footgun the variant enables. Use
crate::dangerous::DangerousClient instead, which gates
construction on the CLAUDE_WRAPPER_ALLOW_DANGEROUS env-var
and makes the intent obvious at the call site. The variant
itself will stay available through the current major version
so existing callers keep compiling (with a deprecation
warning).
DontAsk
Don’t ask for permissions (deny by default).
Plan
Plan mode (read-only).
Auto
Auto mode.
Trait Implementations§
Source§impl Clone for PermissionMode
impl Clone for PermissionMode
Source§fn clone(&self) -> PermissionMode
fn clone(&self) -> PermissionMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more