Edit a file
herdr_file_editReplace exact text in a file locally or on another machine; apply all edits atomically and require each match once to prevent partial changes.
Instructions
Replace exact text in a file here or on another machine. Each old must occur exactly once; edits must not overlap; all are made or none. On edit_failed, add context to make old unique.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Another machine (see herdr_machines); default: this one. | |
| cwd | No | Working directory. Default: the core's; on another machine, its home. | |
| path | Yes | Absolute, or from cwd. | |
| edits | Yes |