Skip to main content

Step

Enum Step 

Source
pub enum Step {
Show 29 variants Bash { id: String, depends_on: Vec<String>, cmd: String, timeout_ms: Option<u64>, retry: Option<RetryConfig>, }, Read { id: String, depends_on: Vec<String>, path: String, max_bytes: Option<usize>, encoding: Option<String>, filter_imports: Option<String>, filter_exports: Option<String>, since: Option<String>, }, Write { id: String, depends_on: Vec<String>, path: String, content: String, create_dirs: bool, }, Patch { id: String, depends_on: Vec<String>, path: String, edits: Vec<PatchEdit>, }, Mv { id: String, depends_on: Vec<String>, from: String, to: String, }, Cp { id: String, depends_on: Vec<String>, from: String, to: String, recursive: bool, }, Rm { id: String, depends_on: Vec<String>, path: String, recursive: bool, }, Mkdir { id: String, depends_on: Vec<String>, path: String, }, Grep { id: String, depends_on: Vec<String>, pattern: String, path: String, ext: Vec<String>, regex: bool, context_lines: Option<usize>, }, Replace { id: String, depends_on: Vec<String>, pattern: String, replacement: String, path: String, ext: Vec<String>, regex: bool, case_sensitive: bool, glob: Option<String>, whole_word: bool, }, Scan { id: String, depends_on: Vec<String>, path: String, depth: usize, include: Vec<String>, output: ScanOutput, }, Summarize { id: String, depends_on: Vec<String>, path: String, focus: String, }, Extract { id: String, depends_on: Vec<String>, path: String, pick: Vec<String>, }, Diff { id: String, depends_on: Vec<String>, a: String, b: String, format: DiffFormat, }, Lint { id: String, depends_on: Vec<String>, path: String, tool: LintTool, }, Template { id: String, depends_on: Vec<String>, name: String, builtin: String, source: String, output: String, vars: HashMap<String, String>, }, Snapshot { id: String, depends_on: Vec<String>, path: String, snapshot_id: String, }, Restore { id: String, depends_on: Vec<String>, snapshot_id: String, }, Git { id: String, depends_on: Vec<String>, op: GitOp, args: Vec<String>, }, Http { id: String, depends_on: Vec<String>, method: String, url: String, headers: HashMap<String, String>, expect_status: u16, body: Option<String>, }, Import { id: String, depends_on: Vec<String>, path: String, add: Vec<String>, remove: Vec<String>, organize: bool, }, Refactor { id: String, depends_on: Vec<String>, symbol: String, rename_to: String, path: String, ext: Vec<String>, dry_run: bool, whole_word: bool, preview: bool, }, Deps { id: String, depends_on: Vec<String>, path: String, depth: usize, include: Vec<String>, focus: Option<String>, }, Checkpoint { id: String, depends_on: Vec<String>, checkpoint_id: String, restore: bool, }, Boilerplate { id: String, depends_on: Vec<String>, path: String, add_header: Option<String>, add_license: Option<String>, add_shebang: Option<String>, auto_imports: bool, }, DeadCode { id: String, depends_on: Vec<String>, path: String, include: Vec<String>, }, If { id: String, depends_on: Vec<String>, condition: Condition, then: Vec<Step>, else_: Vec<Step>, }, Each { id: String, depends_on: Vec<String>, over: EachOver, as_: String, parallel: bool, step: Box<Step>, }, Parallel { id: String, depends_on: Vec<String>, steps: Vec<Step>, },
}

Variants§

§

Bash

Fields

§depends_on: Vec<String>
§timeout_ms: Option<u64>
§

Read

Fields

§depends_on: Vec<String>
§path: String
§max_bytes: Option<usize>
§encoding: Option<String>
§filter_imports: Option<String>
§filter_exports: Option<String>
§

Write

Fields

§depends_on: Vec<String>
§path: String
§content: String
§create_dirs: bool
§

Patch

Fields

§depends_on: Vec<String>
§path: String
§

Mv

Fields

§depends_on: Vec<String>
§from: String
§

Cp

Fields

§depends_on: Vec<String>
§from: String
§recursive: bool
§

Rm

Fields

§depends_on: Vec<String>
§path: String
§recursive: bool
§

Mkdir

Fields

§depends_on: Vec<String>
§path: String
§

Grep

Fields

§depends_on: Vec<String>
§pattern: String
§path: String
§regex: bool
§context_lines: Option<usize>
§

Replace

Fields

§depends_on: Vec<String>
§pattern: String
§replacement: String
§path: String
§regex: bool
§case_sensitive: bool
§whole_word: bool
§

Scan

Fields

§depends_on: Vec<String>
§path: String
§depth: usize
§include: Vec<String>
§output: ScanOutput
§

Summarize

Fields

§depends_on: Vec<String>
§path: String
§focus: String
§

Extract

Fields

§depends_on: Vec<String>
§path: String
§pick: Vec<String>
§

Diff

Fields

§depends_on: Vec<String>
§format: DiffFormat
§

Lint

Fields

§depends_on: Vec<String>
§path: String
§

Template

Fields

§depends_on: Vec<String>
§name: String
§builtin: String
§source: String
§output: String
§

Snapshot

Fields

§depends_on: Vec<String>
§path: String
§snapshot_id: String
§

Restore

Fields

§depends_on: Vec<String>
§snapshot_id: String
§

Git

Fields

§depends_on: Vec<String>
§args: Vec<String>
§

Http

Fields

§depends_on: Vec<String>
§method: String
§expect_status: u16
§

Import

Fields

§depends_on: Vec<String>
§path: String
§remove: Vec<String>
§organize: bool
§

Refactor

Fields

§depends_on: Vec<String>
§symbol: String
§rename_to: String
§path: String
§dry_run: bool
§whole_word: bool
§preview: bool
§

Deps

Fields

§depends_on: Vec<String>
§path: String
§depth: usize
§include: Vec<String>
§

Checkpoint

Fields

§depends_on: Vec<String>
§checkpoint_id: String
§restore: bool
§

Boilerplate

Fields

§depends_on: Vec<String>
§path: String
§add_header: Option<String>
§add_license: Option<String>
§add_shebang: Option<String>
§auto_imports: bool
§

DeadCode

Fields

§depends_on: Vec<String>
§path: String
§include: Vec<String>
§

If

Fields

§depends_on: Vec<String>
§condition: Condition
§then: Vec<Step>
§else_: Vec<Step>
§

Each

Fields

§depends_on: Vec<String>
§parallel: bool
§step: Box<Step>
§

Parallel

Fields

§depends_on: Vec<String>
§steps: Vec<Step>

Implementations§

Source§

impl Step

Source

pub fn get_id(&self) -> &str

Source

pub fn get_depends_on(&self) -> &[String]

Trait Implementations§

Source§

impl Clone for Step

Source§

fn clone(&self) -> Step

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Step

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Step

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Step

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,