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.


#4

Hey @fortes how was your experience with shelljs?
Could you (if possible!) share your own custom bucklescript bindings?


#5

@EliaECoyote I poked around a little with ShellJS, but didn’t really ened up doing anything with it, sorry.


#6

There is also Jane Street’s shexp library.