1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-12 05:23:02 +00:00

Add :pipe to os/spawn for piping to subprocess.

Similar to Python's subprocess.PIPE, this creates and manages pipes
automatically for the caller.
This commit is contained in:
Calvin Rose
2020-09-12 19:48:12 -05:00
parent 8763df1cd0
commit d3147b661b
3 changed files with 94 additions and 9 deletions

View File

@@ -799,6 +799,10 @@ FILE *janet_getfile(const Janet *argv, int32_t n, int *flags) {
return iof->file;
}
JanetFile *janet_makejfile(FILE *f, int flags) {
return makef(f, flags);
}
Janet janet_makefile(FILE *f, int flags) {
return janet_wrap_abstract(makef(f, flags));
}