@flowscripter/dynamic-cli-framework-api
    Preparing search index...

    Interface KeyValueService

    Service providing keystore functionality for the CLI. The keystore data is scoped to the service or Command instances accessing this service via Context.getServiceById.

    Values are arbitrary JSON-serializable data (see ValueNode) - not limited to strings - and may be deep objects or arrays.

    Any node within a value passed to set can be wrapped in Secret to have that node - and only that node - stored as an OS-native secret via SecretService, with a sentinel reference (prefixed with __SECRET__:) kept in its place in the stored structure. Everything else in the value is stored as plain (unencrypted) config data. This is symmetric with get, which resolves sentinel references found at any depth.

    interface KeyValueService {
        delete(key: string): Promise<void>;
        flush(): Promise<void>;
        get<T extends ValueNode = ValueNode>(key: string): Promise<T>;
        has(key: string): Promise<boolean>;
        set(key: string, value: SettableValueNode): Promise<void>;
    }
    Index