LoaderSettings

class LoaderSettings(val parser: ConfigParser, val logger: YaclaLogger? = null, val autoUpdate: Boolean = false)

Configuration object used to supply default settings to one or more config loaders.

This class is typically passed to Yacla.withDefaults to define shared configuration such as the parser, logger, and whether automatic updates should be applied.

Constructors

Link copied to clipboard
constructor(parser: ConfigParser, logger: YaclaLogger? = null, autoUpdate: Boolean = false)

Properties

Link copied to clipboard
val autoUpdate: Boolean = false

if true, triggers automatic config update via net.ririfa.yacla.loader.UpdateStrategy

Link copied to clipboard
val logger: YaclaLogger? = null

optional YaclaLogger to receive info/warning/error output

Link copied to clipboard

the ConfigParser used for loading and writing config files