Create config manager to store part of the config in a json file.

Update the IConfig structure to add new values for API login.
This commit is contained in:
Godzil
2018-08-01 00:40:20 +01:00
parent 68885db538
commit b947a110e2
2 changed files with 73 additions and 0 deletions

View File

@@ -20,4 +20,15 @@ interface IConfig {
verbose?: boolean;
debug?: boolean;
retry?: number;
// Login options
logUsingApi?: boolean;
crSessionUrl?: string;
crDeviceType?: string;
crAPIVersion?: string;
crLocale?: string;
crSessionKey?: string;
crLoginUrl?: string;
// Generated values
crDeviceId?: string;
crSessionId?: string;
}