feather
feather copied to clipboard
A shell library for OCaml
Trying to run this code: ``` let () = let process = process "bash" [ "-c"; "for i in `seq 1 5` ; do echo $i ; sleep 1 ;...
Right now, our commands construct a linear chain of pipes. It would be nice if we could do arbitrary DAGs, something along the lines of: ```ocaml val split : cmd...
These would be nice to have
The first commit allows the following on native Windows: ```ocaml #require "feather";; open Feather;; process "ps.exe" [] |> collect stdout;; ``` Notice that `ps.exe` is required for Windows executables (on...
I'm not sure whether globbing should be a first class feature or a sibling library or maybe there is already a library that handles it well in OCaml but it'd...
A common pattern in bash is to start a long-running process in the background, do something, then kill it: ```bash foo & FOO_PID=$! # do other stuff kill $FOO_PID ```...
I'm trying to run a command that has a very large output and read it into my program, which causes the stdout collector to hang. **How to reproduce** The best...