mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-22 15:51:18 -07:00
Use parameter properties where possible. (#242)
This commit is contained in:
@@ -54,13 +54,11 @@ interface GrepMatch {
|
||||
export class GrepTool extends BaseTool<GrepToolParams, ToolResult> {
|
||||
static readonly Name = 'search_file_content'; // Keep static name
|
||||
|
||||
private rootDirectory: string;
|
||||
|
||||
/**
|
||||
* Creates a new instance of the GrepLogic
|
||||
* @param rootDirectory Root directory to ground this tool in. All operations will be restricted to this directory.
|
||||
*/
|
||||
constructor(rootDirectory: string) {
|
||||
constructor(private rootDirectory: string) {
|
||||
super(
|
||||
GrepTool.Name,
|
||||
'SearchText',
|
||||
|
||||
Reference in New Issue
Block a user