pub struct CommandLine {
pub command: String,
pub location: ScriptLocation,
pub line_count: usize,
}Fields§
§command: String§location: ScriptLocation§line_count: usizeImplementations§
Source§impl CommandLine
impl CommandLine
pub fn new(command: String, location: ScriptLocation, line_count: usize) -> Self
pub fn run( &self, writer: &mut dyn WriteColor, show_line_numbers: bool, runner: Option<String>, timeout: Duration, envs: &HashMap<String, String>, kill_receiver: &ScriptKillReceiver, kill_sender: &ScriptKillSender, ) -> Result<(Lines, CommandResult), Error>
Trait Implementations§
Source§impl Clone for CommandLine
impl Clone for CommandLine
Source§fn clone(&self) -> CommandLine
fn clone(&self) -> CommandLine
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandLine
impl Debug for CommandLine
Auto Trait Implementations§
impl Freeze for CommandLine
impl RefUnwindSafe for CommandLine
impl Send for CommandLine
impl Sync for CommandLine
impl Unpin for CommandLine
impl UnwindSafe for CommandLine
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