Skip to main content

execute_fix

Function execute_fix 

Source
pub async fn execute_fix(fix: &Fix, repo_path: &str) -> Result<String, String>
Expand description

Applies fix inside repo_path, refusing to overwrite existing files.

Returns a human-readable log (preview + executed command + verification) on success, or a String error describing why it failed.

Use execute_fix_with to acknowledge an overwrite after asking the user.