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

Methods

getKey(key: string): string

Get a value for a specified key in the keystore.

setKey(
key: string,
value: string,
): void

Set a value for a specified key in the keystore.

hasKey(key: string): boolean

Check if a value for a specified key exists in the keystore.

deleteKey(key: string): void

Delete the value for a specified key in the keystore.

Usage

import type KeyValueService from ".";