Types
PackageDefect = object of CatchableError
Procs
proc dumpProject(): Pkg {.compileTime, ...raises: [IOError, OSError, JsonParsingError, ValueError, Exception], tags: [ReadIOEffect, WriteIOEffect].}
proc getAuthor(pkgInfo: Pkg): string {.compileTime, ...raises: [], tags: [].}
- Get package author
proc getDescription(pkgInfo: Pkg): string {.compileTime, ...raises: [], tags: [].}
- Get package description
proc getLicense(pkgInfo: Pkg): string {.compileTime, ...raises: [], tags: [].}
- Get package license
proc getName(pkgInfo: Pkg): string {.compileTime, ...raises: [], tags: [].}
- Get package name
proc getVersion(pkgInfo: Pkg): Version {.compileTime, ...raises: [ParseError, ValueError], tags: [].}
- Get package version
proc nimVersion(): Version {.compileTime, ...raises: [ParseError, ValueError], tags: [].}
- Get Nim version from main working project
proc pkg(pkgName: string = ""): Pkg {.compileTime, ...raises: [KeyError], tags: [].}
proc version(vers: string): Version {.compileTime, ...raises: [ValueError, InvalidVersionError], tags: [].}
- Create a Version object instance from string