1 | #!/usr/bin/env node
|
2 | import { Logger } from './logging/logger';
|
3 | import { LowCodeUnityCLIService } from './cli/lcu-cli.service';
|
4 | import { ICommandService } from './cli/commands/ICommandService';
|
5 | import { InitializeCommandService } from './cli/commands/initialize.command.service';
|
6 | import { version } from '../package.json';
|
7 | import { DAFCommandService } from './cli/commands/daf.command.service';
|
8 | import { ElementCommandService } from './cli/commands/element.command.service';
|
9 | import { ProjectCommandService } from './cli/commands/project.command.service';
|
10 | import { ServeCommandService } from './cli/commands/serve.command.service';
|
11 | import { UpdateCommandService } from './cli/commands/update.command.service';
|
12 | import { SolutionCommandService } from './cli/commands/solution.command.service';
|
13 |
|
14 | var 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 | })();
|