TomlHeaderComment

@SerialInfo
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class TomlHeaderComment(val text: String)

Adds a Comment to the Version key of a config file.

TomlComment can't attach to a Class annotation target. This fills that hole, and is applied as comment annotations to the "version" key added to the written config file. Can be applied multiple times (Repeatable annotation)

Author

fzzyhmstrs

Since

0.2.0

Parameters

text

The comment text to write to file. Supports multi-line comments with triple-quotes.

Properties

Link copied to clipboard