nim-confutils/tests/logger.nim

17 lines
212 B
Nim
Raw Normal View History

2020-03-24 15:31:05 +00:00
import
../confutils
type
Command = enum
pubsub = "A pub sub command"
Conf = object
logDir: string
case cmd {.command.}: Command
of pubsub:
foo: string
let c = load Conf
echo c.cmd