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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more