agentsqripts
Version:
Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems
28 lines (26 loc) • 1.35 kB
JavaScript
/**
* @file CLI main handler factory providing standardized command-line tool entry points
* @description Single responsibility: Aggregate main handler creation functionality with SRP compliance
*
* This utility module provides access to the main handler factory function that creates
* standardized entry points for all AgentSqripts CLI tools. It maintains strict Single
* Responsibility Principle compliance by re-exporting from a dedicated single-function
* module while providing convenient access for CLI tool implementations.
*
* Design rationale:
* - Centralized main handler creation ensures consistent CLI tool behavior
* - SRP compliance through single-function module delegation
* - Standardized entry points reduce boilerplate code in CLI implementations
* - Consistent error handling and argument processing across all tools
* - Simplified testing and maintenance through focused responsibility
*
* Usage pattern:
* - CLI tools import createMainHandler to build their main execution functions
* - Handler factory accepts analysis function and configuration options
* - Standardized error handling, help display, and argument validation
* - Consistent exit behavior and user feedback across all CLI tools
*/
const createMainHandler = require('./cli/createMainHandler');
module.exports = {
createMainHandler
};