mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-10 01:50:20 -07:00
feat(core): enable search hidden dir
This commit is contained in:
@@ -1330,6 +1330,7 @@ describe('RipGrepTool', () => {
|
||||
const result = await invocation.execute({ abortSignal });
|
||||
|
||||
const spawnArgs = mockSpawn.mock.calls[0][1];
|
||||
expect(spawnArgs).toContain('--hidden');
|
||||
expect(spawnArgs).toContain('--fixed-strings');
|
||||
expect(spawnArgs).toContain('--regexp');
|
||||
expect(spawnArgs).toContain('hello.world');
|
||||
@@ -1777,6 +1778,7 @@ describe('RipGrepTool', () => {
|
||||
await invocation.execute({ abortSignal });
|
||||
|
||||
const spawnArgs = mockSpawn.mock.calls[0][1];
|
||||
expect(spawnArgs).toContain('--hidden');
|
||||
expect(spawnArgs).toContain('--max-count');
|
||||
expect(spawnArgs).toContain('1');
|
||||
});
|
||||
|
||||
@@ -402,7 +402,7 @@ class GrepToolInvocation extends BaseToolInvocation<
|
||||
|
||||
const searchPaths = Array.isArray(path) ? path : [path];
|
||||
|
||||
const rgArgs = ['--json'];
|
||||
const rgArgs = ['--json', '--hidden'];
|
||||
|
||||
if (!case_sensitive) {
|
||||
rgArgs.push('--ignore-case');
|
||||
|
||||
Reference in New Issue
Block a user