nim-confutils/tests/logger.nim
2020-03-24 17:31:05 +02:00

17 lines
212 B
Nim

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