pub struct WrappedCommand { /* private fields */ }Expand description
A wrapped command that integrates with the CLI bridge.
Implementations§
Source§impl WrappedCommand
impl WrappedCommand
Sourcepub fn current_dir(self, dir: &Path) -> Self
pub fn current_dir(self, dir: &Path) -> Self
Set the working directory.
Sourcepub fn progress_parser<P: ProgressParser + 'static>(self, parser: P) -> Self
pub fn progress_parser<P: ProgressParser + 'static>(self, parser: P) -> Self
Set the progress parser.
Sourcepub fn bridge_config(self, config: CliBridgeConfig) -> Self
pub fn bridge_config(self, config: CliBridgeConfig) -> Self
Set the bridge configuration.
Sourcepub fn run(self) -> Result<CommandOutput>
pub fn run(self) -> Result<CommandOutput>
Execute the command (blocking).
Sourcepub fn spawn(self) -> Result<WrappedChild>
pub fn spawn(self) -> Result<WrappedChild>
Execute the command (non-blocking).
Auto Trait Implementations§
impl Freeze for WrappedCommand
impl !RefUnwindSafe for WrappedCommand
impl Send for WrappedCommand
impl Sync for WrappedCommand
impl Unpin for WrappedCommand
impl UnsafeUnpin for WrappedCommand
impl !UnwindSafe for WrappedCommand
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMetered for T
impl<T> IntoMetered for T
Source§fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
Wrap this sender with metrics tracking.
Source§impl<T> WithMetrics for T
impl<T> WithMetrics for T
Source§fn with_metrics(self) -> MeteredWrapper<Self>
fn with_metrics(self) -> MeteredWrapper<Self>
Wrap this channel with metrics tracking.