3 ms·
I saw many projects like this a while ago, and, although they all seemed great, I kept wondering why do I need such a complex thing just to save/run a bunch of
by gutomotta 2y ago
I saw many projects like this a while ago, and, although they all seemed great, I kept wondering why do I need such a complex thing just to save/run a bunch of scripts?
I ended up building my own script runner, fj.sh [1]. It's dead simple, you write your scripts using regular shell functions that accept arguments, and add your script files to your repos. Run with "fj myfunc myarg ...". Installation is basically downloading an executable shell script (fj.sh) and adding it to your PATH. Uninstall by removing it. That's all.
I'm not saying 'just' is bad—it is an awesome, very powerful tool, but you don't always need that much power, so keep an eye on your use case, as always.
[1] github.com/gutomotta/fj.sh
- junipertea 2y agoThere is irony in “I don’t understand why people do X and ended up doing X but simpler”
- zahlman 2y agoThere is nothing at all ironic, inconsistent or otherwise strange about "I don't understand why others' implementations of X are so complex".
- hk__2 2y ago'Just' too was simple at the beginning [1], but with time and usage things always become more complex that some script you do for your own specific use-case. [1]: https://github.com/casey/just/tree/v0.2.23 https://github.com/casey/just/tree/v0.2.23