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
§
retry: Option<RetryConfig>Read
Fields
Write
Patch
Mv
Cp
Rm
Mkdir
Grep
Fields
Replace
Fields
Scan
Fields
§
output: ScanOutputSummarize
Extract
Diff
Lint
Template
Fields
Snapshot
Restore
Git
Http
Fields
Import
Fields
Refactor
Fields
Deps
Fields
Checkpoint
Boilerplate
Fields
DeadCode
If
Each
Parallel
Implementations§
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