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
No related branches found
No related tags found
No related merge requests found
...@@ -3,13 +3,23 @@ import getAppDataPath from 'appdata-path'; ...@@ -3,13 +3,23 @@ import getAppDataPath from 'appdata-path';
class Config { class Config {
public readonly localConfig: { public readonly localConfig: {
folder: string; file: string; folder: string; sessionFile: string;
}; };
public readonly gitlab: { public readonly gitlab: {
cliReleasePage: string cliReleasePage: string
}; };
public readonly login: {
server: {
port: number, route: string
}, gitlab: {
url: {
code: string
}
}
};
public readonly folders: { public readonly folders: {
defaultLocalExercise: string defaultLocalExercise: string
}; };
...@@ -21,13 +31,25 @@ class Config { ...@@ -21,13 +31,25 @@ class Config {
constructor() { constructor() {
this.localConfig = { this.localConfig = {
folder : getAppDataPath('DojoCLI'), folder : getAppDataPath('DojoCLI'),
file : process.env.LOCAL_CONFIG_FILE || '' sessionFile: process.env.LOCAL_CONFIG_FILE_SESSION || ''
}; };
this.gitlab = { this.gitlab = {
cliReleasePage: process.env.GITLAB_CLI_RELEASE_PAGE || '' 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 = { this.folders = {
defaultLocalExercise: process.env.LOCAL_EXERCISE_DEFAULT_FOLDER || './' 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