pub struct CommandIdentity {
pub argv: Vec<OsString>,
pub spec_preview: String,
pub command_family: CommandFamily,
pub title: String,
}Expand description
Command data captured from a typed command spec.
Fields§
§argv: Vec<OsString>Exact process argv after global options are applied, excluding the jj binary.
spec_preview: StringDisplay-only preview from the command spec.
command_family: CommandFamilyBroad command family for filtering and grouping.
title: StringHuman-readable title from the command spec.
Implementations§
Source§impl CommandIdentity
impl CommandIdentity
Sourcepub fn from_spec(spec: &JjCommandSpec) -> Self
pub fn from_spec(spec: &JjCommandSpec) -> Self
Captures command identity from a typed command spec.
Sourcepub fn process_preview(&self) -> String
pub fn process_preview(&self) -> String
Returns the exact redacted process command line captured for this command.
Trait Implementations§
Source§impl Clone for CommandIdentity
impl Clone for CommandIdentity
Source§fn clone(&self) -> CommandIdentity
fn clone(&self) -> CommandIdentity
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 CommandIdentity
impl Debug for CommandIdentity
impl Eq for CommandIdentity
Source§impl PartialEq for CommandIdentity
impl PartialEq for CommandIdentity
Source§fn eq(&self, other: &CommandIdentity) -> bool
fn eq(&self, other: &CommandIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandIdentity
Auto Trait Implementations§
impl Freeze for CommandIdentity
impl RefUnwindSafe for CommandIdentity
impl Send for CommandIdentity
impl Sync for CommandIdentity
impl Unpin for CommandIdentity
impl UnsafeUnpin for CommandIdentity
impl UnwindSafe for CommandIdentity
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