marta

Function configurationKey()

fun marta.configurationKey(

path: String...,

block: ConfigurationKeyDeclaration

)

Defines a configuration key.

The built-in preferences editor will recognize the key and highlight its usage.

path is one or more key path chunks. Please put action preferences to the behavior/actions block.

Example:

configurationKey("behavior", "actions", "my.action", {
    description = "My action.",
    examples = {"5", "-0.2"},
    typeConstraints = {"int", "double"}
})