Skip to content

Add Process.setWorkingDir and IO.openFile (and constructors)#79

Merged
chrisdone merged 2 commits intochrisdone:mainfrom
austin-artificial:austin/more-functions
Jan 13, 2025
Merged

Add Process.setWorkingDir and IO.openFile (and constructors)#79
chrisdone merged 2 commits intochrisdone:mainfrom
austin-artificial:austin/more-functions

Conversation

@austin-artificial
Copy link
Copy Markdown
Contributor

This adds a couple of functions to the standard libary.

Process.setWorkingDir, for when you want a process to run in a certain dir. (This avoids having to cd in and out again).

IO.openFIle. This is useful if you want fine grained control when writing to a file, rather than doing it in one go as Text.writeFIle etc. Typically this is useful when running processes concurrently, and you want the stdout to be written to a file in real time.

@chrisdone chrisdone merged commit 918bb54 into chrisdone:main Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants