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.
DataHoard/src/app.ts

25 lines
520 B
TypeScript
Raw Normal View History

// Import the configuration file
import { getConfig } from "./helper/config";
2021-08-21 15:46:30 +03:00
// Import SystemControl
import { SystemControl } from "./models/SystemController";
2021-08-21 15:46:30 +03:00
// Global system control singleton
(global as any).logger = new SystemControl();
(global as any).config = null;
2021-08-21 00:56:51 +03:00
/**
* The main function to run the program with
*/
async function main() {
// Get the configuration file
(global as any).config = getConfig();
2021-08-21 01:21:16 +03:00
console.log(
(global as any).config
);
}
// Run the main program
main();