diff options
| author | Olcan <[email protected]> | 2025-05-19 15:21:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-19 15:21:31 -0700 |
| commit | a756489f861ad58cddf67f9bfb84251d82d09169 (patch) | |
| tree | dc898a1d77fe13466bb1220ec6a6a85eba55c3af /packages/cli/src/ui/hooks/shellCommandProcessor.ts | |
| parent | 96387aba83acb6dfc2e18f31814daef9dec44b35 (diff) | |
switch from console.warn to info item (#440)
Diffstat (limited to 'packages/cli/src/ui/hooks/shellCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/shellCommandProcessor.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.ts index d52623b8..f1d9af32 100644 --- a/packages/cli/src/ui/hooks/shellCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/shellCommandProcessor.ts @@ -89,8 +89,12 @@ export const useShellCommandProcessor = ( if (fs.existsSync(pwdFilePath)) { const pwd = fs.readFileSync(pwdFilePath, 'utf8').trim(); if (pwd !== targetDir) { - console.warn( - `shell mode is stateless; \`cd ${pwd}\` will not apply to next command`, + addItemToHistory( + { + type: 'info', + text: `WARNING: shell mode is stateless; \`cd ${pwd}\` will not apply to next command`, + }, + userMessageTimestamp, ); } fs.unlinkSync(pwdFilePath); |
