pub struct CommandExecutionContext {
pub cwd: Option<PathBuf>,
pub repository: Option<PathBuf>,
pub global_options: GlobalOptionsSnapshot,
}Expand description
Context captured when a command starts.
Fields§
§cwd: Option<PathBuf>Process working directory, if set by the command spec.
repository: Option<PathBuf>Repository path from global jj options, if set.
global_options: GlobalOptionsSnapshotRedacted snapshot of global jj options.
Implementations§
Source§impl CommandExecutionContext
impl CommandExecutionContext
Sourcepub fn from_spec(spec: &JjCommandSpec) -> Self
pub fn from_spec(spec: &JjCommandSpec) -> Self
Captures execution context from a typed command spec.
Trait Implementations§
Source§impl Clone for CommandExecutionContext
impl Clone for CommandExecutionContext
Source§fn clone(&self) -> CommandExecutionContext
fn clone(&self) -> CommandExecutionContext
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 Debug for CommandExecutionContext
impl Debug for CommandExecutionContext
impl Eq for CommandExecutionContext
Source§impl PartialEq for CommandExecutionContext
impl PartialEq for CommandExecutionContext
Source§fn eq(&self, other: &CommandExecutionContext) -> bool
fn eq(&self, other: &CommandExecutionContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandExecutionContext
Auto Trait Implementations§
impl Freeze for CommandExecutionContext
impl RefUnwindSafe for CommandExecutionContext
impl Send for CommandExecutionContext
impl Sync for CommandExecutionContext
impl Unpin for CommandExecutionContext
impl UnsafeUnpin for CommandExecutionContext
impl UnwindSafe for CommandExecutionContext
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