Remove {.gcsafe.} from procutils.exec.

This commit is contained in:
2024-12-10 10:42:46 -06:00
parent 30c5720ab8
commit eaffb20df5
3 changed files with 4 additions and 4 deletions

View File

@@ -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) =