Skip to content

Commit

Permalink
Add Cmd object notes in the Running External Programs section of th…
Browse files Browse the repository at this point in the history
…e manual. (JuliaLang#39704)
  • Loading branch information
AtsushiSakai committed Feb 19, 2021
1 parent 11cbaf6 commit 1699c6a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/src/manual/running-external-programs.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,13 @@ stages have different latency so they use a different number of parallel workers
saturated throughput.

We strongly encourage you to try all these examples to see how they work.

## `Cmd` Objects
The syntax introduced above creates objects of type [`Cmd`](@ref). Such object may also be constructed directly:

```julia
run(Cmd(`pwd`, dir=".."))
```

This way, they may be customized with the `dir` keyword to set the working directory,
`detach` keyword to run the command in a new process group, and `env` keyword to set environment variables.

0 comments on commit 1699c6a

Please sign in to comment.