Replacing Shell Scripts with ReasonML


#1

I’m looking to replace some shell scripts that have gotten out of hand, and was wondering if ReasonML might be a good choice.

Obviously, I can call into other programs via the Unix and Sys modules, but I’m wondering if there are any nice higher-level tools similar to Plumbum for Python.

Anyone know of any nice utilities / modules or even examples out there to crib off of?

Thanks!


#2

There are multiple libraries such as shcaml or genspio. You should probably ask on https://discuss.ocaml.org/ for more answers.


#3

Thanks, I’ll take a look! It looks like shelljs might be an option if I don’t go native.