pub struct ReplayOptions {
pub dry_run: bool,
pub step: bool,
pub skip_indices: HashSet<usize>,
pub skip_patterns: Vec<Pattern>,
pub from_index: Option<usize>,
pub force: bool,
pub use_original_cwd: bool,
pub danger_policy: Option<DangerPolicy>,
}Expand description
Options controlling replay behavior.
All indices are 0-based internally. Conversion from 1-based user input happens at the CLI boundary.
Fields§
§dry_run: boolPreview commands without executing
step: boolExecute one command at a time with confirmation
skip_indices: HashSet<usize>Set of command indices to skip (0-based)
skip_patterns: Vec<Pattern>Glob patterns — commands matching any pattern are skipped
from_index: Option<usize>Start execution from this command index (0-based)
force: boolBypass destructive command prompts
use_original_cwd: boolReplay in each command’s original working directory
danger_policy: Option<DangerPolicy>Policy for handling dangerous commands (None = use existing interactive behavior)
Trait Implementations§
Source§impl Clone for ReplayOptions
impl Clone for ReplayOptions
Source§fn clone(&self) -> ReplayOptions
fn clone(&self) -> ReplayOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplayOptions
impl Debug for ReplayOptions
Source§impl Default for ReplayOptions
impl Default for ReplayOptions
Source§fn default() -> ReplayOptions
fn default() -> ReplayOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReplayOptions
impl RefUnwindSafe for ReplayOptions
impl Send for ReplayOptions
impl Sync for ReplayOptions
impl Unpin for ReplayOptions
impl UnwindSafe for ReplayOptions
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