Files
tspm/ts/daemon/tspm.config.ts

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);
}
}