mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 00:16:46 +00:00
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:
@@ -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';
|
||||
@@ -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';
|
||||
Reference in New Issue
Block a user