Skip to main content

Module execute

Module execute 

Source
Expand description

Silent execution of an Operation across a set of files. Returns a structured ExecuteResult with everything a caller needs to render output, make decisions, or surface errors. No println!/eprintln! — embedders (MCP server, yah, tests) decide what to display; the CLI in main.rs wraps these calls with its own renderer.

Structs§

ExecuteOpts
ExecuteResult
FileChange

Functions§

execute
Apply op across files without printing anything. When opts.apply is true, writes modified files in place (or to opts.output if set); otherwise performs a dry run and only fills the result.
execute_with_state
Like execute but records a revertible run. Falls back to plain execute if apply is false or output is set (state tracking only applies to in-place writes). On success, populates run_id and files_modified.