pub enum Program {
Exec {
prog: PathBuf,
args: Vec<String>,
},
Shell {
shell: Shell,
command: String,
args: Vec<String>,
},
}Expand description
A single program call.
Variants§
Exec
A raw program call: the path or name of a program and its argument list.
Shell
A shell program: a string which is to be executed by a shell.
(Tip: in general, a shell will handle its own job control, so there’s no inherent need to
set grouped: true at the Command level.)
Fields
§
args: Vec<String>The arguments to pass to the shell invocation.
This may not be supported by all shells. Note that some shells require the use of --
for disambiguation: this is not handled by Watchexec, and will need to be the first
item in this vec if desired.
This appends the values within to the shell process invocation.
Trait Implementations§
impl Eq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.