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

Config => Add some env var needed by exercice local execution

parent fa865a7a
Branches
No related tags found
No related merge requests found
...@@ -6,11 +6,35 @@ class Config { ...@@ -6,11 +6,35 @@ class Config {
folder: string; file: string; folder: string; file: string;
}; };
public readonly folders: {
defaultLocalExercice: string
};
public enonce: {
filename: string
};
public readonly exercice: {
neededFiles: Array<string>
};
constructor() { constructor() {
this.localConfig = { this.localConfig = {
folder: getAppDataPath('DojoCLI'), folder: getAppDataPath('DojoCLI'),
file : process.env.LOCAL_CONFIG_FILE || '' file : process.env.LOCAL_CONFIG_FILE || ''
}; };
this.folders = {
defaultLocalExercice: process.env.LOCAL_EXERCICE_DEFAULT_FOLDER || './'
};
this.enonce = {
filename: process.env.ENONCE_FILENAME || ''
};
this.exercice = {
neededFiles: JSON.parse(process.env.EXERCICE_NEEDED_FILES || '[]')
};
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment