Fork me on GitHub
#babashka
<
2020-06-05
>
borkdude14:06:31

Wrote about java.lang.Process and how to use it to e.g. run a test runner in watch mode, parse the output and send a message to a desktop notifier: https://book.babashka.org/#_java_lang_process

šŸ”„ 24
cldwalker15:06:51

Thanks for the example with getInputStream. Definitely some interesting wrapper commands that could be written šŸ™‚

Ian Fernandez05:06:49

wow it should be easy to send a sound when test fails and send a notifyd

plexus11:06:24

the easy way would be to use a kaocha hook šŸ˜‰

borkdude11:06:58

maybe I should find another better example then šŸ˜‰

plins14:06:42

whats the best way to create a lib to share code between babashka scripts?

borkdude14:06:48

Or you can use load-file which also works

plins14:06:24

but that src/my/namespace.clj is regular clojure file or it needs to be a babashka script?

borkdude14:06:20

if you want to run that .clj file with babashka, it needs to be compatible with it

plins14:06:53

ok thanks šŸ˜„

nate14:06:48

I've found it pretty easy to develop scripts with libs using clojure and then run them with babashka. It's been a while since I wanted to use a clojure feature that babashka didn't already support.

Darin Douglass17:06:40

^ most of the time Iā€™m simply using bb as a fast starting clojure