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§impl Debug for CommandExecutionContext
impl Debug for CommandExecutionContext
impl Eq for CommandExecutionContext
Source§impl PartialEq for CommandExecutionContext
impl PartialEq for CommandExecutionContext
impl StructuralPartialEq for CommandExecutionContext
Auto Trait Implementations§
impl Forget for CommandExecutionContext
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