pub struct DefaultCliRunner;Expand description
Production CliRunner that delegates to TokioRunner from
toride-runner, which uses tokio::process internally.
Trait Implementations§
Source§impl CliRunner for DefaultCliRunner
impl CliRunner for DefaultCliRunner
Source§fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
cmd: &'life1 str,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DefaultCliRunner: 'async_trait,
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
cmd: &'life1 str,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DefaultCliRunner: 'async_trait,
Run an external command and return its captured stdout. Read more
Source§fn run_with_env<'life0, 'life1, 'async_trait>(
&'life0 self,
cmd: &'life1 str,
args: Vec<String>,
env: Vec<(String, String)>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DefaultCliRunner: 'async_trait,
fn run_with_env<'life0, 'life1, 'async_trait>(
&'life0 self,
cmd: &'life1 str,
args: Vec<String>,
env: Vec<(String, String)>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DefaultCliRunner: 'async_trait,
Run an external command with additional environment variables and
return its captured stdout. Read more
Source§fn tool_exists(&self, name: &str) -> bool
fn tool_exists(&self, name: &str) -> bool
Return
true when the given tool is available on PATH.Source§impl Clone for DefaultCliRunner
impl Clone for DefaultCliRunner
Source§fn clone(&self) -> DefaultCliRunner
fn clone(&self) -> DefaultCliRunner
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 moreimpl Copy for DefaultCliRunner
Source§impl Debug for DefaultCliRunner
impl Debug for DefaultCliRunner
Source§impl Default for DefaultCliRunner
impl Default for DefaultCliRunner
Source§fn default() -> DefaultCliRunner
fn default() -> DefaultCliRunner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultCliRunner
impl RefUnwindSafe for DefaultCliRunner
impl Send for DefaultCliRunner
impl Sync for DefaultCliRunner
impl Unpin for DefaultCliRunner
impl UnsafeUnpin for DefaultCliRunner
impl UnwindSafe for DefaultCliRunner
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