summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
index 59f748bf..3a071fab 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -243,11 +243,6 @@ export const useSlashCommandProcessor = (
},
},
{
- name: 'auth',
- description: 'change the auth method',
- action: (_mainCommand, _subCommand, _args) => openAuthDialog(),
- },
- {
name: 'editor',
description: 'set external editor preference',
action: (_mainCommand, _subCommand, _args) => openEditorDialog(),
@@ -1027,7 +1022,6 @@ export const useSlashCommandProcessor = (
return commands;
}, [
addMessage,
- openAuthDialog,
openEditorDialog,
openPrivacyNotice,
toggleCorgiMode,
@@ -1125,6 +1119,9 @@ export const useSlashCommandProcessor = (
case 'help':
setShowHelp(true);
return { type: 'handled' };
+ case 'auth':
+ openAuthDialog();
+ return { type: 'handled' };
case 'theme':
openThemeDialog();
return { type: 'handled' };
@@ -1205,6 +1202,7 @@ export const useSlashCommandProcessor = (
[
addItem,
setShowHelp,
+ openAuthDialog,
commands,
legacyCommands,
commandContext,