forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.ts
More file actions
19 lines (15 loc) · 692 Bytes
/
App.ts
File metadata and controls
19 lines (15 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { DataModel, ExampleModel } from '../packlets/data-model';
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import { Logger, MessageType } from '../packlets/logging';
import { MainReport } from '../packlets/reports';
export class App {
public run(): void {
const logger: Logger = new Logger();
logger.log(MessageType.Info, 'Starting app...');
const dataModel: DataModel = new ExampleModel(logger);
const report: MainReport = new MainReport(logger);
report.showReport(dataModel);
logger.log(MessageType.Info, 'Operation completed successfully');
}
}