refactor: add barrel exports for commands and utils directories

- src/commands/index.ts exports all command handlers

- src/utils/index.ts exports common utilities
This commit is contained in:
kaitranntt
2025-12-19 12:36:43 -05:00
parent 0341f4f86f
commit 50c427d339
2 changed files with 40 additions and 0 deletions
+17
View File
@@ -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';
+23
View File
@@ -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';