21 lines
602 B
TypeScript
21 lines
602 B
TypeScript
import * as plugins from '../plugins.js';
|
|
|
|
export class TspmConfig {
|
|
public smartconfigInstance = new plugins.smartconfig.KeyValueStore({
|
|
identityArg: '@git.zone__tspm',
|
|
typeArg: 'userHomeDir',
|
|
});
|
|
|
|
public async readKey(keyArg: string): Promise<string> {
|
|
return await this.smartconfigInstance.readKey(keyArg);
|
|
}
|
|
|
|
public async writeKey(keyArg: string, value: string): Promise<void> {
|
|
return await this.smartconfigInstance.writeKey(keyArg, value);
|
|
}
|
|
|
|
public async deleteKey(keyArg: string): Promise<void> {
|
|
return await this.smartconfigInstance.deleteKey(keyArg);
|
|
}
|
|
}
|