2017-03-18 16:23:47 +01:00
|
|
|
export declare type TKeyValueStore = 'path' | 'gitProject' | 'custom';
|
2017-07-09 19:05:03 +02:00
|
|
|
/**
|
|
|
|
* kvStore is a simple key vlaue store to store data about projects between runs
|
|
|
|
*/
|
2016-09-24 21:53:44 +02:00
|
|
|
export declare class KeyValueStore {
|
2017-03-18 16:23:47 +01:00
|
|
|
type: TKeyValueStore;
|
2016-09-24 21:53:44 +02:00
|
|
|
identity: string;
|
|
|
|
filePath: string;
|
2017-03-18 16:23:47 +01:00
|
|
|
constructor(typeArg: TKeyValueStore, customStringArg?: string);
|
2016-09-24 21:53:44 +02:00
|
|
|
/**
|
|
|
|
* reads a keyValueFile from disk
|
|
|
|
*/
|
|
|
|
read(): void;
|
|
|
|
/**
|
|
|
|
* writes a key value file to disk
|
|
|
|
*/
|
|
|
|
write(): void;
|
|
|
|
/**
|
|
|
|
* wipes a key value store from disk
|
|
|
|
*/
|
|
|
|
wipe(): void;
|
|
|
|
/**
|
|
|
|
* updates a value
|
|
|
|
*/
|
|
|
|
update(): void;
|
|
|
|
/**
|
|
|
|
* computes the identity
|
|
|
|
*/
|
|
|
|
private initFilePath();
|
|
|
|
}
|