pub fn execute_with_state(
files: &[PathBuf],
op: &Operation,
opts: &ExecuteOpts,
local_state: bool,
command_line: String,
) -> Result<ExecuteResult>Expand description
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.
command_line is stored verbatim in the run metadata so users can recall
what produced a given run; pass String::new() if the caller has no
meaningful command line to report.