#[non_exhaustive]pub struct StepSpec {
pub task: Option<String>,
pub run: Option<Vec<String>>,
pub writes: Vec<String>,
pub check: Option<Vec<String>>,
}Expand description
One named extension step declared under steps in .ctl/ver.yaml.
Exactly one of task or run must be set. task executes as
mise run --raw <task>; run executes an argv directly without a shell.
Inputs reach the command through VERCTL_PLAN and, for package-scoped
steps, VERCTL_PACKAGE, VERCTL_VERSION, VERCTL_PREVIOUS_VERSION,
VERCTL_TAG, and VERCTL_RELEASE_COMMIT.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.task: Option<String>A mise task name, executed as mise run --raw <task>. Omit when run
is set.
run: Option<Vec<String>>Direct argv to execute without a shell. Omit when task is set.
writes: Vec<String>Paths relative to the repository root that this step may create, modify, or remove. Omit for a step that writes nothing.
check: Option<Vec<String>>Postcondition check argv evaluated before a released step runs; exit
zero means the step already completed and is skipped. Omit when not
attached to released.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepSpec
impl<'de> Deserialize<'de> for StepSpec
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>,
impl Eq for StepSpec
impl StructuralPartialEq for StepSpec
Source§impl Validate for StepSpec
impl Validate for StepSpec
Source§fn validate_into(
&self,
config: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, config: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Forget for StepSpec
impl Freeze for StepSpec
impl Move for StepSpec
impl RefUnwindSafe for StepSpec
impl Send for StepSpecwhere
RawVecInner: Send,
impl Sync for StepSpecwhere
RawVecInner: Sync,
impl Unpin for StepSpec
impl UnsafeUnpin for StepSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for StepSpecwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.