aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firm/User.kt
blob: 080f93a82811d077a7b58423fc67c154f896cc14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package moe.nea.firm

import ext.StringIdentifiable
import kotlin.enums.enumEntries

object User : ManagedConfig("test") {
	val option by choice<TestEnum>()
	val optionAlt by choice<TestEnum>(enumEntries<TestEnum>(),
	                        StringIdentifiable.createCodec { enumValues<TestEnum>() },
	                        EnumRenderable.default(),
	                        )

	enum class TestEnum : StringIdentifiable {
		A, B, C;
	}
}
fun main() {
	User.option
}