mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 18:44:30 -07:00
prefactor: add rootCommands as array so it can be used for policy parsing (#16640)
This commit is contained in:
@@ -208,6 +208,7 @@ describe('<HistoryItemDisplay />', () => {
|
||||
title: 'Run Shell Command',
|
||||
command: 'echo "\u001b[31mhello\u001b[0m"',
|
||||
rootCommand: 'echo',
|
||||
rootCommands: ['echo'],
|
||||
onConfirm: async () => {},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -83,6 +83,7 @@ describe('ToolConfirmationMessage', () => {
|
||||
title: 'Confirm Execution',
|
||||
command: 'echo "hello"',
|
||||
rootCommand: 'echo',
|
||||
rootCommands: ['echo'],
|
||||
onConfirm: vi.fn(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user