Remove {.gcsafe.} from procutils.exec.
This commit is contained in:
@@ -6,13 +6,13 @@ type
|
||||
docopt*: Table[string, Value]
|
||||
json*: JsonNode
|
||||
|
||||
func keyNames(key: string): tuple[arg, env, json: string] {.raises: [KeyError].} =
|
||||
proc keyNames(key: string): tuple[arg, env, json: string] {.raises: [KeyError].} =
|
||||
try:
|
||||
result = (
|
||||
"--" & key,
|
||||
key.replace('-', '_').toUpper,
|
||||
key.replace(re"(-\w)", proc (m: RegexMatch): string = ($m)[1..1].toUpper))
|
||||
except CatchableError:
|
||||
except Exception:
|
||||
raise newException(KeyError, "invalid config key: '" & key & "'")
|
||||
|
||||
template walkFieldDefs*(t: NimNode, body: untyped) =
|
||||
|
||||
Reference in New Issue
Block a user