added system.gorgeEx that includes the exitCode; refs #4874; fixes #1994

This commit is contained in:
Araq 2017-01-07 02:38:26 +01:00
commit 9d488261df
8 changed files with 46 additions and 20 deletions

View file

@ -3368,6 +3368,11 @@ proc staticExec*(command: string, input = "", cache = ""): string {.
## .. code-block:: nim
## const stateMachine = staticExec("dfaoptimizer", "input", "0.8.0")
proc gorgeEx*(command: string, input = "", cache = ""): tuple[output: string,
exitCode: int] =
## Same as `gorge` but also returns the precious exit code.
discard
proc `+=`*[T: SomeOrdinal|uint|uint64](x: var T, y: T) {.
magic: "Inc", noSideEffect.}
## Increments an ordinal