pub struct PeeledCommand {
pub primary: String,
pub args: Vec<String>,
pub wrappers: Vec<String>,
}Expand description
Result of peeling wrapper commands off a single simple bash command.
Fields§
§primary: StringFirst non-wrapper command name reached after stripping leading wrappers. Equal to the original command name when no peel applied.
args: Vec<String>Positional arguments to primary, in invocation order (text only).
Empty when the wrapped command was bare (nohup git).
wrappers: Vec<String>Wrapper names that were stripped, in invocation order. Empty when the command was not wrapped.
Trait Implementations§
Source§impl Clone for PeeledCommand
impl Clone for PeeledCommand
Source§fn clone(&self) -> PeeledCommand
fn clone(&self) -> PeeledCommand
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 PeeledCommand
impl Debug for PeeledCommand
impl Eq for PeeledCommand
Source§impl PartialEq for PeeledCommand
impl PartialEq for PeeledCommand
impl StructuralPartialEq for PeeledCommand
Auto Trait Implementations§
impl Freeze for PeeledCommand
impl RefUnwindSafe for PeeledCommand
impl Send for PeeledCommand
impl Sync for PeeledCommand
impl Unpin for PeeledCommand
impl UnsafeUnpin for PeeledCommand
impl UnwindSafe for PeeledCommand
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