@elsikora/setup-wizard
Version:
Setup Wizard - CLI scaffolding utility
43 lines (41 loc) • 1.36 kB
JavaScript
/**
* Command for analyzing the project.
* Implements the ICommand interface to provide standard command execution.
*/
class AnalyzeCommand {
/**
* CLI interface service for user interaction.
*/
CLI_INTERFACE_SERVICE;
/**
* File system service for file operations.
*/
FILE_SYSTEM_SERVICE;
/**
* Properties defining command behavior.
*/
PROPERTIES;
/**
* Initializes a new instance of the AnalyzeCommand.
* @param properties - Properties defining command behavior
* @param cliInterfaceService - Service for CLI user interactions
* @param fileSystemService - Service for file system operations
*/
constructor(properties, cliInterfaceService, fileSystemService) {
this.PROPERTIES = properties;
this.CLI_INTERFACE_SERVICE = cliInterfaceService;
this.FILE_SYSTEM_SERVICE = fileSystemService;
}
/**
* Executes the analyze command.
* Clears the console and prompts the user to confirm project analysis.
* @returns Promise that resolves when execution is complete
*/
async execute() {
this.CLI_INTERFACE_SERVICE.clear();
await this.CLI_INTERFACE_SERVICE.confirm("Do you want to analyze the project?");
}
}
export { AnalyzeCommand };
//# sourceMappingURL=analyze.command.js.map