diff options
Diffstat (limited to 'testament/specs.nim')
-rw-r--r-- | testament/specs.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testament/specs.nim b/testament/specs.nim index 4d09f438f..cf3455027 100644 --- a/testament/specs.nim +++ b/testament/specs.nim @@ -7,7 +7,7 @@ # distribution, for details about the copyright. # -import sequtils, parseutils, strutils, os, osproc, streams, parsecfg +import sequtils, parseutils, strutils, os, streams, parsecfg var compilerPrefix* = findExe("nim") @@ -122,6 +122,9 @@ proc addLine*(self: var string; a,b: string) = self.add b self.add "\n" +proc initSpec*(filename: string): TSpec = + result.file = filename + proc parseSpec*(filename: string): TSpec = result.file = filename let specStr = extractSpec(filename) |