Skip to content
Snippets Groups Projects
Commit af004716 authored by michael.minelli's avatar michael.minelli
Browse files

App => Init Config and related files before call the CLI parsing

parent 4b99e097
No related branches found
No related tags found
No related merge requests found
// ATTENTION : This line MUST be the first of this file // ATTENTION : This line MUST be the first of this file
import './init.js'; import './init.js';
import CommanderApp from './commander/CommanderApp.js'; import CommanderApp from './commander/CommanderApp.js';
import HttpManager from './managers/HttpManager.js'; import HttpManager from './managers/HttpManager.js';
import Config from './config/Config';
import ConfigFiles from './config/ConfigFiles';
import DojoBackendManager from './managers/DojoBackendManager';
import SharedAssignmentHelper from './shared/helpers/Dojo/SharedAssignmentHelper';
HttpManager.registerAxiosInterceptor(); (async () => {
ConfigFiles.init();
await Config.init(await DojoBackendManager.getApiUrl());
(new CommanderApp()).parse(); SharedAssignmentHelper.init(Config.gitlabManager);
\ No newline at end of file
HttpManager.registerAxiosInterceptor();
const commanderApp = new CommanderApp();
await commanderApp.init();
commanderApp.parse();
})();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment