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 |
|
13 | var 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 | })();
|