()
| 92 | } |
| 93 | |
| 94 | getDescription(): string { |
| 95 | let description = `'${this.params.pattern}'`; |
| 96 | if (this.params.path) { |
| 97 | const searchDir = path.resolve( |
| 98 | this.config.getTargetDir(), |
| 99 | this.params.path || '.', |
| 100 | ); |
| 101 | const relativePath = makeRelative(searchDir, this.config.getTargetDir()); |
| 102 | description += ` within ${shortenPath(relativePath)}`; |
| 103 | } |
| 104 | return description; |
| 105 | } |
| 106 | |
| 107 | async execute(signal: AbortSignal): Promise<ToolResult> { |
| 108 | try { |
nothing calls this directly
no test coverage detected