Skip to content

Commit 018c96e

Browse files
AtsushiSakaiantoine-levitt
authored andcommitted
Add Cmd object notes in the Running External Programs section of the manual. (JuliaLang#39704)
1 parent 5d3ffe6 commit 018c96e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/src/manual/running-external-programs.md

+10
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,13 @@ stages have different latency so they use a different number of parallel workers
373373
saturated throughput.
374374

375375
We strongly encourage you to try all these examples to see how they work.
376+
377+
## `Cmd` Objects
378+
The syntax introduced above creates objects of type [`Cmd`](@ref). Such object may also be constructed directly:
379+
380+
```julia
381+
run(Cmd(`pwd`, dir=".."))
382+
```
383+
384+
This way, they may be customized with the `dir` keyword to set the working directory,
385+
`detach` keyword to run the command in a new process group, and `env` keyword to set environment variables.

0 commit comments

Comments
 (0)