diff --git a/all.html b/all.html index 3724bee..fc0f0db 100644 --- a/all.html +++ b/all.html @@ -850,7 +850,7 @@ function main() {
diff --git a/build.html b/build.html index 2446361..8859919 100644 --- a/build.html +++ b/build.html @@ -836,8 +836,11 @@ function main() { title="sanitizePath(path: string; noQuote = false; sep = $'/'): string">proc execAction(cmd: string; retry = 0; nostderr = false): string {...}{. - raises: [OSError, Exception, IOError, Defect], - tags: [ExecIOEffect, ReadIOEffect, RootEffect].}
proc getCurrentNimCompiler(): string {...}{.raises: [], tags: [].}
proc execAction(cmd: string; retry = 0; die = true; cache = false; cacheKey = ""): tuple[ + output: string, ret: int] {...}{.raises: [IOError, ValueError, OSError, Exception, Defect], tags: [ + ReadEnvEffect, ReadIOEffect, ReadDirEffect, WriteIOEffect, ExecIOEffect, + RootEffect].}
Execute an external command - supported at compile time
-Checks if command exits successfully before returning. If not, an error is raised.
+Checks if command exits successfully before returning. If not, an error is raised. Always caches results to be used in nimsuggest or nimcheck mode.
+retry - number of times command should be retried before error die = false - return on errors cache = true - cache results unless cleared with -f cacheKey - key to create unique cache entry
proc findExe(exe: string): string {...}{.raises: [], tags: [].}
proc findExe(exe: string): string {...}{.raises: [IOError, ValueError, OSError, Exception, + Defect], tags: [ReadEnvEffect, + ReadIOEffect, ReadDirEffect, WriteIOEffect, ExecIOEffect, RootEffect].}
proc mkDir(dir: string) {...}{.raises: [OSError, Exception, IOError, Defect, ValueError], tags: [ - ReadDirEffect, ExecIOEffect, ReadIOEffect, RootEffect].}
proc mkDir(dir: string) {...}{.raises: [IOError, ValueError, OSError, Exception, Defect], tags: [ + ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteIOEffect, ExecIOEffect, + RootEffect].}
Create a directory at compile time
@@ -970,33 +985,35 @@ Find the specified executable using theproc cpFile(source, dest: string; move = false) {...}{. - raises: [OSError, Exception, IOError, Defect, ValueError], - tags: [ExecIOEffect, ReadIOEffect, RootEffect].}
proc mvFile(source, dest: string) {...}{.raises: [OSError, Exception, IOError, Defect, - ValueError], - tags: [ExecIOEffect, ReadIOEffect, RootEffect].}
proc mvFile(source, dest: string) {...}{.raises: [IOError, ValueError, OSError, Exception, + Defect], tags: [ReadEnvEffect, + ReadIOEffect, ReadDirEffect, WriteIOEffect, ExecIOEffect, RootEffect].}
proc rmFile(source: string; dir = false) {...}{.raises: [OSError, Exception, IOError, Defect, - ValueError], tags: [ReadDirEffect, ExecIOEffect, ReadIOEffect, RootEffect].}
proc rmFile(source: string; dir = false) {...}{.raises: [IOError, ValueError, OSError, + Exception, Defect], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}
proc rmDir(dir: string) {...}{.raises: [OSError, Exception, IOError, Defect, ValueError], tags: [ - ReadDirEffect, ExecIOEffect, ReadIOEffect, RootEffect].}
proc rmDir(dir: string) {...}{.raises: [IOError, ValueError, OSError, Exception, Defect], tags: [ + ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteIOEffect, ExecIOEffect, + RootEffect].}
proc getProjectCacheDir(name: string; forceClean = true): string {...}{. - raises: [OSError, Exception, IOError, Defect, ValueError], tags: [ReadEnvEffect, - ReadIOEffect, ReadDirEffect, ExecIOEffect, RootEffect].}
Get a cache directory where all nimterop artifacts can be stored
@@ -1022,24 +1039,27 @@ Remove a directory or pattern at compile timeproc extractZip(zipfile, outdir: string) {...}{.raises: [OSError, Exception, IOError, Defect, - ValueError], tags: [ExecIOEffect, ReadIOEffect, RootEffect].}
proc extractZip(zipfile, outdir: string) {...}{.raises: [IOError, ValueError, OSError, + Exception, Defect], tags: [ReadEnvEffect, ReadIOEffect, ReadDirEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}
proc extractTar(tarfile, outdir: string) {...}{.raises: [ValueError, OSError, Exception, - IOError, Defect], tags: [ExecIOEffect, ReadIOEffect, RootEffect, ReadDirEffect].}
proc extractTar(tarfile, outdir: string) {...}{.raises: [IOError, ValueError, OSError, + Exception, Defect], tags: [ReadEnvEffect, ReadIOEffect, ReadDirEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}
proc downloadUrl(url, outdir: string) {...}{.raises: [OSError, Exception, IOError, Defect, - ValueError], tags: [ReadDirEffect, ExecIOEffect, ReadIOEffect, RootEffect].}
proc downloadUrl(url, outdir: string) {...}{.raises: [IOError, ValueError, OSError, + Exception, Defect], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}
Download a file using curl or wget (or powershell on Windows) to the specified directory
@@ -1048,16 +1068,18 @@ Extract a tar file using tar -proc gitReset(outdir: string) {...}{.raises: [ValueError, OSError, Exception, IOError, Defect], - tags: [ExecIOEffect, ReadIOEffect, RootEffect].}
proc gitReset(outdir: string) {...}{.raises: [ValueError, IOError, OSError, Exception, Defect], tags: [ + ReadEnvEffect, ReadIOEffect, ReadDirEffect, WriteIOEffect, ExecIOEffect, + RootEffect].}
proc gitCheckout(file, outdir: string) {...}{.raises: [ValueError, OSError, Exception, - IOError, Defect], tags: [ExecIOEffect, ReadIOEffect, RootEffect].}
proc gitCheckout(file, outdir: string) {...}{.raises: [ValueError, IOError, OSError, + Exception, Defect], tags: [ReadEnvEffect, ReadIOEffect, ReadDirEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}
Checkout the specified file in the git repository at outdir
@@ -1067,8 +1089,8 @@ Hard reset the git repository at the specified directoryproc gitPull(url: string; outdir = ""; plist = ""; checkout = "") {...}{. - raises: [ValueError, OSError, Exception, IOError, Defect], tags: [ReadDirEffect, - ExecIOEffect, ReadIOEffect, RootEffect, WriteIOEffect].}
Pull the specified git repository to the output directory
@@ -1079,7 +1101,8 @@ Hard reset the git repository at the specified directoryproc findFile(file: string; dir: string; recurse = true; first = false; regex = false): string {...}{. - raises: [ValueError], tags: [].}
Find the file in the specified directory
@@ -1104,7 +1127,8 @@ Hard reset the git repository at the specified directoryproc linkLibs(names: openArray[string]; staticLink = true): string {...}{. - raises: [ValueError], tags: [].}
Create linker flags for specified libraries
@@ -1114,8 +1138,8 @@ Hard reset the git repository at the specified directoryproc configure(path, check: string; flags = "") {...}{. - raises: [OSError, Exception, IOError, Defect, ValueError], - tags: [ReadDirEffect, ExecIOEffect, ReadIOEffect, RootEffect].}
Run the GNU configure command to generate all Makefiles or other build scripts in the specified path
@@ -1172,8 +1196,9 @@ Set a cmake directiveproc cmake(path, check, flags: string) {...}{.raises: [OSError, Exception, IOError, Defect, - ValueError], tags: [ReadDirEffect, ExecIOEffect, ReadIOEffect, RootEffect].}
proc cmake(path, check, flags: string) {...}{.raises: [IOError, ValueError, OSError, + Exception, Defect], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}
Run the cmake command to generate all Makefiles or other build scripts in the specified path
@@ -1185,8 +1210,8 @@ Set a cmake directiveproc make(path, check: string; flags = ""; regex = false) {...}{. - raises: [ValueError, OSError, Exception, IOError, Defect], - tags: [ExecIOEffect, ReadIOEffect, RootEffect].}
Run the make command to build all binaries in the specified path
@@ -1205,15 +1230,18 @@ Set a cmake directiveproc getGccPaths(mode = "c"): seq[string] {...}{.raises: [ValueError], tags: [ReadEnvEffect].}
proc getGccPaths(mode = "c"): seq[string] {...}{.raises: [IOError, ValueError, OSError, + Exception, Defect], tags: [ReadEnvEffect, ReadIOEffect, ReadDirEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}
proc getGccLibPaths(mode = "c"): seq[string] {...}{.raises: [ValueError], - tags: [ReadEnvEffect].}
proc getGccLibPaths(mode = "c"): seq[string] {...}{. + raises: [IOError, ValueError, OSError, Exception, Defect], tags: [ReadEnvEffect, + ReadIOEffect, ReadDirEffect, WriteIOEffect, ExecIOEffect, RootEffect].}
proc cAddStdDir(mode = "c") {...}{.compileTime, raises: [ValueError], tags: [ReadEnvEffect].}
proc cAddStdDir(mode = "c") {...}{.compileTime, raises: [IOError, ValueError, OSError, + Exception, Defect], tags: [ReadEnvEffect, ReadIOEffect, ReadDirEffect, + WriteIOEffect, ExecIOEffect, RootEffect].}