edit_file

Function edit_file 

Source
pub async fn edit_file<R: PathResolver>(
    resolver: &R,
    file_path: &str,
    old_string: &str,
    new_string: &str,
    replace_all: bool,
) -> Result<String, EditError>
Expand description

Performs exact string replacement in a file.

Returns success message with replacement count.