UNPKG

1.26 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';
12
13var logger = new Logger();
14
15(async () => {
16 var cli = new LowCodeUnityCLIService(version, logger);
17
18 var commands: ICommandService[] = [];
19
20 commands.push(new InitializeCommandService());
21
22 commands.push(new ProjectCommandService());
23
24 commands.push(new ElementCommandService());
25
26 commands.push(new ServeCommandService());
27
28 commands.push(new UpdateCommandService());
29
30 commands.push(new DAFCommandService());
31
32 await cli.SetupCLI(commands);
33
34 await cli.StartCLI(process.argv);
35})();