extractPathArg is the analog for file-oriented plugins (@coder read / future Read tool). It accepts both "file" and "path" because both appear in the codebase's existing schemas.
(args []string)
| 164 | // future Read tool). It accepts both "file" and "path" because both |
| 165 | // appear in the codebase's existing schemas. |
| 166 | func extractPathArg(args []string) string { |
| 167 | return extractStringArg(args, "file", "path", "filepath") |
| 168 | } |
| 169 | |
| 170 | // extractNestedArg pulls a string from inside the `args` field of the |
| 171 | // @coder envelope (or any other plugin that uses the same nested shape). |