edit_file

Function edit_file 

Source
pub async fn edit_file(
    path: &str,
    old_str: &str,
    new_str: &str,
) -> Result<String, AppError>
Expand description

Edit a file asynchronously by replacing old_str with new_str.

Returns a small JSON payload with the number of replacements.