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

    Class DefaultKeyValueService

    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 can optionally be stored as OS-native secrets using the isSecret parameter on setKey. Secret values are stored via SecretService and only a sentinel reference is kept in the key-value Map. The sentinel prefix __SECRET__: is reserved.

    Implements

    Index
    • Set a value for a specified key in the keystore.

      Parameters

      • key: string
      • value: string
      • isSecret: boolean = false

        if true, the value is stored in the OS-native secret store and a sentinel reference is kept in the key-value Map. Requires that the service was constructed with secret support enabled.

      Returns Promise<void>