@elsikora/setup-wizard
Version:
Setup Wizard - CLI scaffolding utility
17 lines (15 loc) • 1.02 kB
JavaScript
import { Command } from 'commander';
import { CommandFactory } from './infrastructure/factory/command.factory.js';
import { NodeFileSystemService } from './infrastructure/service/node-file-system.service.js';
import { PromptsCliInterface } from './infrastructure/service/prompts-cli-interface.service.js';
import { AnalyzeCommandRegistrar } from './presentation/registrar/analyze.registrar.js';
import { InitCommandRegistrar } from './presentation/registrar/init.registrar.js';
const program = new Command();
program.name("@elsikora/setup-wizard").description("Project scaffolder by ElsiKora").version("1.0.0");
const CliInterfaceService = new PromptsCliInterface();
const FileSystemService = new NodeFileSystemService();
new InitCommandRegistrar(program, new CommandFactory(CliInterfaceService, FileSystemService)).execute();
new AnalyzeCommandRegistrar(program, new CommandFactory(CliInterfaceService, FileSystemService)).execute();
program.parse(process.argv);
//# sourceMappingURL=index.js.map