klip

fun klip(context: KlipContext, source: () -> String): String

Writes or returns klip depending on the working mode.

Return

read klip if it exists and KlipContext.update== false or persisted value that was provided by source otherwise

Parameters

context

KlipContext containing metadata about the klip

source

a provider for a string representation to persist