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

Config => Update for add session settings

parent 1d6e64e4
Branches
Tags
No related merge requests found
......@@ -3,13 +3,23 @@ import getAppDataPath from 'appdata-path';
class Config {
public readonly localConfig: {
folder: string; file: string;
folder: string; sessionFile: string;
};
public readonly gitlab: {
cliReleasePage: string
};
public readonly login: {
server: {
port: number, route: string
}, gitlab: {
url: {
code: string
}
}
};
public readonly folders: {
defaultLocalExercise: string
};
......@@ -21,13 +31,25 @@ class Config {
constructor() {
this.localConfig = {
folder : getAppDataPath('DojoCLI'),
file : process.env.LOCAL_CONFIG_FILE || ''
sessionFile: process.env.LOCAL_CONFIG_FILE_SESSION || ''
};
this.gitlab = {
cliReleasePage: process.env.GITLAB_CLI_RELEASE_PAGE || ''
};
this.login = {
server: {
port : Number(process.env.LOGIN_SERVER_PORT || 30992),
route: process.env.LOGIN_SERVER_ROUTE || ''
},
gitlab: {
url: {
code: process.env.LOGIN_GITLAB_URL_CODE || ''
}
}
};
this.folders = {
defaultLocalExercise: process.env.LOCAL_EXERCISE_DEFAULT_FOLDER || './'
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment