pub struct SandboxCommand { /* private fields */ }Expand description
Run a command within a Codex-provided sandbox.
Wraps codex sandbox [OPTIONS] -- <command> [args...].
Implementations§
Source§impl SandboxCommand
impl SandboxCommand
Sourcepub fn args(self, args: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn args(self, args: impl IntoIterator<Item = impl Into<String>>) -> Self
Add multiple arguments to the sandboxed command.
Sourcepub fn config(self, key_value: impl Into<String>) -> Self
pub fn config(self, key_value: impl Into<String>) -> Self
Override a config key (-c key=value). May be called multiple times.
Sourcepub fn enable(self, feature: impl Into<String>) -> Self
pub fn enable(self, feature: impl Into<String>) -> Self
Enable an optional feature flag (--enable <feature>).
Sourcepub fn disable(self, feature: impl Into<String>) -> Self
pub fn disable(self, feature: impl Into<String>) -> Self
Disable an optional feature flag (--disable <feature>).
Sourcepub fn permission_profile(self, name: impl Into<String>) -> Self
pub fn permission_profile(self, name: impl Into<String>) -> Self
Named permissions profile to apply (-P, --permission-profile <NAME>).
Trait Implementations§
Source§impl Clone for SandboxCommand
impl Clone for SandboxCommand
Source§fn clone(&self) -> SandboxCommand
fn clone(&self) -> SandboxCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CodexCommand for SandboxCommand
impl CodexCommand for SandboxCommand
Auto Trait Implementations§
impl Freeze for SandboxCommand
impl RefUnwindSafe for SandboxCommand
impl Send for SandboxCommand
impl Sync for SandboxCommand
impl Unpin for SandboxCommand
impl UnsafeUnpin for SandboxCommand
impl UnwindSafe for SandboxCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more