Skip to main content

Module edit

Module edit 

Source
Expand description

edit_file — exact-string replacement within a file.

Structs§

EditFileTool
Replaces exact substrings in a file: one old_string/new_string pair, or several as edits, applied in order and written together or not at all (spec 3.1 §7.26).

Functions§

preview
The content edit_file with args would leave in a file holding original: the replacements of args applied in order, or the error the call would fail with (spec 3.1 §7.26: a reviewer sees the edit before it runs).