UNPKG

1.39 kBPlain TextView Raw
1#!/usr/bin/env node
2import { Logger } from './logging/logger';
3import { LowCodeUnityCLIService } from './cli/lcu-cli.service';
4import { ICommandService } from './cli/commands/ICommandService';
5import { InitializeCommandService } from './cli/commands/initialize.command.service';
6import { version } from '../package.json';
7import { DAFCommandService } from './cli/commands/daf.command.service';
8import { ElementCommandService } from './cli/commands/element.command.service';
9import { ProjectCommandService } from './cli/commands/project.command.service';
10import { ServeCommandService } from './cli/commands/serve.command.service';
11import { UpdateCommandService } from './cli/commands/update.command.service';
12import { SolutionCommandService } from './cli/commands/solution.command.service';
13
14var logger = new Logger();
15
16(async () => {
17 var cli = new LowCodeUnityCLIService(version, logger);
18
19 var commands: ICommandService[] = [];
20
21 commands.push(new InitializeCommandService());
22
23 commands.push(new ProjectCommandService());
24
25 commands.push(new ElementCommandService());
26
27 commands.push(new SolutionCommandService());
28
29 commands.push(new ServeCommandService());
30
31 commands.push(new UpdateCommandService());
32
33 commands.push(new DAFCommandService());
34
35 await cli.SetupCLI(commands);
36
37 await cli.StartCLI(process.argv);
38})();