Skip to content

Running executables with steel #202

Answered by mattwparas
nxy7 asked this question in Q&A
Discussion options

You must be logged in to vote

So you'll find the process module here

Here is an example of running a process:

(define (build-release)
  (~> (command "cargo" '("build" "--release")) (spawn-process) (Ok->value) (wait)))

To capture std out you could try:

(define (build-release)
  (~> (command "cargo" '("build" "--release")) (spawn-process) (Ok->value) (wait->stdout)))

It certainly could use some documentation 😅

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nxy7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants