Enum watchexec_supervisor::command::Program
source · 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
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.
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.)
Trait Implementations§
source§impl PartialEq for Program
impl PartialEq for Program
impl Eq for Program
impl StructuralEq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
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