From 50c427d339f008e628c05b3f150843425174b425 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Fri, 19 Dec 2025 12:36:43 -0500 Subject: [PATCH] refactor: add barrel exports for commands and utils directories - src/commands/index.ts exports all command handlers - src/utils/index.ts exports common utilities --- src/commands/index.ts | 17 +++++++++++++++++ src/utils/index.ts | 23 +++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/commands/index.ts create mode 100644 src/utils/index.ts diff --git a/src/commands/index.ts b/src/commands/index.ts new file mode 100644 index 00000000..007664e5 --- /dev/null +++ b/src/commands/index.ts @@ -0,0 +1,17 @@ +/** + * Commands module barrel export + */ + +export { handleApiCommand } from './api-command'; +export { handleCleanupCommand } from './cleanup-command'; +export { handleCliproxyCommand } from './cliproxy-command'; +export { handleConfigCommand } from './config-command'; +export { handleCopilotCommand } from './copilot-command'; +export { handleDoctorCommand } from './doctor-command'; +export { handleHelpCommand } from './help-command'; +export { handleInstallCommand } from './install-command'; +export { handleMigrateCommand } from './migrate-command'; +export { handleShellCompletionCommand } from './shell-completion-command'; +export { handleSyncCommand } from './sync-command'; +export { handleUpdateCommand } from './update-command'; +export { handleVersionCommand } from './version-command'; diff --git a/src/utils/index.ts b/src/utils/index.ts new file mode 100644 index 00000000..e8190542 --- /dev/null +++ b/src/utils/index.ts @@ -0,0 +1,23 @@ +/** + * Utils module barrel export + * Selective exports of commonly used utilities + */ + +// UI utilities (main export) +export * from './ui'; + +// Shell execution +export { execClaude, escapeShellArg } from './shell-executor'; + +// Claude detection and management +export { getClaudeCliInfo } from './claude-detector'; +export { ClaudeSymlinkManager } from './claude-symlink-manager'; +export { ClaudeDirInstaller } from './claude-dir-installer'; + +// Utilities +export { ProgressIndicator } from './progress-indicator'; +export { getVersion } from './version'; +export { ErrorManager } from './error-manager'; + +// Platform utilities +export { default as getPlatformCommands } from './platform-commands';