An OCaml library with documentation!?
Yes. I realize it’s unorthodox, but I thought I’d give it a shot.
I began my programming journey a bit later than most, and I began it with Bash. Over the years I’ve grown apart from Bash and even written some semi-popular anti-Bash propaganda.
However, while I’m not particularly a fan of shell programming languages, I’ve maintained a long-term interest in the types of automation tasks which the shell lends itself to, and I have a soft spot in my heart for languages which make this type of programming a priority—languages such as AWK, Perl and Ruby.
Since learning OCaml, I always felt that it could be a good language for these kinds of jobs with its light syntax, extensive Unix interface and great regex libraries (I’m talking about Re
and friends, not Str
).
However, I always felt the provided interfaces for working with processes were… not quite what I was looking for. Sys.command
(combined with Filename.quote_command
, of course) is OK for what it does, but it doesn’t do much. The more extensive set of process handling commands in the Unix library make just about anything possible, but they don’t feel good to me.
So I set out to create a library for working with Unix commands which feels right to me. Subprocess focuses on safety and ease of use—in that order. I hope someone besides myself will feel the same about it.
Note that this is the first release (and my first public OCaml library) and I welcome feedback and criticism.
Github: GitHub - ninjaaron/ocaml-subprocess: Simplified interface to using Unix commands with OCaml
Opam: subprocess 0.2.1 (latest) · OCaml Package
Odoc docs: index (subprocess.index)