mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 23:09:37 +00:00
ignore: fix typos and formatting (#294)
This commit is contained in:
parent
09b89fdb23
commit
333569bed3
11 changed files with 31 additions and 35 deletions
|
|
@ -22,7 +22,7 @@ export const EditTool = Tool.define({
|
|||
replaceAll: z
|
||||
.boolean()
|
||||
.optional()
|
||||
.describe("Replace all occurences of old_string (default false)"),
|
||||
.describe("Replace all occurrences of old_string (default false)"),
|
||||
}),
|
||||
async execute(params, ctx) {
|
||||
if (!params.filePath) {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ To make multiple file edits, provide the following:
|
|||
2. edits: An array of edit operations to perform, where each edit contains:
|
||||
- old_string: The text to replace (must match the file contents exactly, including all whitespace and indentation)
|
||||
- new_string: The edited text to replace the old_string
|
||||
- replace_all: Replace all occurences of old_string. This parameter is optional and defaults to false.
|
||||
- replace_all: Replace all occurrences of old_string. This parameter is optional and defaults to false.
|
||||
|
||||
IMPORTANT:
|
||||
- All edits are applied in sequence, in the order they are provided
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue