@lowcodeunit/lcu-cli
Version:
This is the home of the LCU DevKit and the LCU CLI code.
30 lines (20 loc) • 1.01 kB
text/typescript
import { Logger } from './logging/logger';
import { LowCodeUnityCLIService } from './cli/lcu-cli.service';
import { ICommandService } from './cli/commands/ICommandService';
import { InitializeCommandService } from './cli/commands/initialize.command.service';
import { version } from '../package.json';
import { ProjectCommandService } from './cli/commands/project.command.service';
import { ElementCommandService } from './cli/commands/element.command.service';
import { UpdateCommandService } from './cli/commands/update.command.service';
var logger = new Logger();
(async () => {
var cli = new LowCodeUnityCLIService(version, logger);
var commands: ICommandService[] = [];
commands.push(new InitializeCommandService());
commands.push(new ProjectCommandService());
commands.push(new ElementCommandService());
commands.push(new UpdateCommandService());
await cli.SetupCLI(commands);
await cli.StartCLI(process.argv);
})();