pub struct Step {
pub run: Option<Vec<String>>,
pub pipe: Option<Vec<String>>,
pub notify: Option<Vec<String>>,
pub capture: Option<String>,
pub input: Option<String>,
pub if: Option<String>,
pub on_fail: Option<String>,
pub ignore_failure: bool,
}Expand description
Fields§
§run: Option<Vec<String>>Spawn a subprocess with these args. String args may interpolate
captured vars via {name}.
pipe: Option<Vec<String>>Spawn a subprocess that receives input on stdin.
notify: Option<Vec<String>>Send a desktop notification with this title (notify[0]) and body
(notify[1]).
capture: Option<String>Variable name to capture stdout into.
input: Option<String>Input string fed to stdin (used with pipe). May reference captures.
if: Option<String>Predicate gating this step. e.g. command_exists:fish,
platform:linux, env:FOO=bar, !file_exists:/etc/passwd.
on_fail: Option<String>Failure mode: abort (default), notify, ignore, prompt.
ignore_failure: boolBoolean shortcut for on_fail = "ignore".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Step
impl<'de> Deserialize<'de> for Step
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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