This repository has been archived on 2024-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-21 16:11:09 +03:00
|
|
|
// Import the configuration file
|
|
|
|
import { getConfig } from "./helper/config";
|
2021-08-21 15:46:30 +03:00
|
|
|
// Import SystemControl
|
2021-08-21 02:26:59 +03:00
|
|
|
import { SystemControl } from "./models/SystemController";
|
|
|
|
|
2021-08-21 15:46:30 +03:00
|
|
|
// Global system control singleton
|
2021-08-21 02:26:59 +03:00
|
|
|
(global as any).logger = new SystemControl();
|
2021-08-21 16:11:09 +03:00
|
|
|
(global as any).config = null;
|
2021-08-21 00:56:51 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The main function to run the program with
|
|
|
|
*/
|
|
|
|
async function main() {
|
2021-08-21 16:11:09 +03:00
|
|
|
// Get the configuration file
|
|
|
|
(global as any).config = getConfig();
|
2021-08-21 01:21:16 +03:00
|
|
|
|
2021-08-21 16:11:09 +03:00
|
|
|
console.log(
|
|
|
|
(global as any).config
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Run the main program
|
|
|
|
main();
|