pub trait Run {
// Required methods
fn run(self) -> Result<Success, Failure>;
fn stream(self) -> Result<Success, Failure>;
}
Required Methods§
Implementors§
impl<T> Run for T
run
- allows you to run a command directly from a type that support conversion to Vec<String>
Works in the same way as the main run function, returning an object
§Examples
use rsgit::Run;
let output = vec!["log", "--shortstat"].run();
stream
- allows you to run a command directly from a type that support conversion to Vec<String>
Works in the same way as the main run function, returning an object
§Examples
use rsgit::Run;
let _ = vec!["log", "--shortstat"].stream();