diff options
Diffstat (limited to 'packages/cli/src/ui/hooks/shellCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/shellCommandProcessor.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.ts index 16106bb0..d0615ce5 100644 --- a/packages/cli/src/ui/hooks/shellCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/shellCommandProcessor.ts @@ -19,7 +19,7 @@ import { UseHistoryManagerReturn } from './useHistoryManager.js'; export const useShellCommandProcessor = ( addItemToHistory: UseHistoryManagerReturn['addItem'], setStreamingState: React.Dispatch<React.SetStateAction<StreamingState>>, - setDebugMessage: React.Dispatch<React.SetStateAction<string>>, + onDebugMessage: (message: string) => void, config: Config, ) => { /** @@ -50,7 +50,7 @@ export const useShellCommandProcessor = ( } const targetDir = config.getTargetDir(); - setDebugMessage( + onDebugMessage( `Executing shell command in ${targetDir}: ${commandToExecute}`, ); const execOptions = { @@ -80,7 +80,7 @@ export const useShellCommandProcessor = ( return true; // Command was initiated }, - [config, setDebugMessage, addItemToHistory, setStreamingState], + [config, onDebugMessage, addItemToHistory, setStreamingState], ); return { handleShellCommand }; |
