21 lines
379 B
Nim
21 lines
379 B
Nim
|
import
|
||
|
../../confutils,
|
||
|
../../confutils/defs
|
||
|
|
||
|
type
|
||
|
Command = enum
|
||
|
noCommand
|
||
|
|
||
|
TestConf* = object
|
||
|
dataDir* {.name: "data-dir" }: OutDir
|
||
|
|
||
|
case cmd* {.
|
||
|
command
|
||
|
defaultValue: noCommand }: Command
|
||
|
|
||
|
of noCommand:
|
||
|
importDir* {.name: "import-dir" }: OutDir
|
||
|
importKey* {.name: "import-dir" }: OutDir
|
||
|
|
||
|
let c = TestConf.load()
|