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§impl CodexCommand for SandboxCommand
impl CodexCommand for SandboxCommand
Auto Trait Implementations§
impl Forget for SandboxCommand
impl Freeze for SandboxCommand
impl Move for SandboxCommand
impl RefUnwindSafe for SandboxCommand
impl Send for SandboxCommandwhere
RawVecInner: Send,
impl Sync for SandboxCommandwhere
RawVecInner: Sync,
impl Unpin for SandboxCommand
impl UnsafeUnpin for SandboxCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SandboxCommandwhere
RawVecInner: UnwindSafe,
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