Consistent behavior of exec; Improved docs around exec, staticExec, gorgeEx, etc. (#10967)

* improved docs around exec, staticExec, gorgeEx, etc.
* incorporate review comment; made behavior of exec consistent
This commit is contained in:
Fabian Keller 2019-08-13 07:41:08 +02:00 • committed by Miran
commit 83397a69fc
2 changed files with 18 additions and 6 deletions

View file

@ -4060,7 +4060,8 @@ proc gorge*(command: string, input = "", cache = ""): string {.
proc staticExec*(command: string, input = "", cache = ""): string {.
magic: "StaticExec".} = discard
## Executes an external process at compile-time.
## Executes an external process at compile-time and returns its text output
## (stdout + stderr).
##
## If `input` is not an empty string, it will be passed as a standard input
## to the executed program.