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:
parent
433613e267
commit
83397a69fc
2 changed files with 18 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue