Fork me on GitHub
#babashka
<
2021-07-30
>
Jakub Šťastný18:07:42

Quick check: I want to pipe a string from BB into a process. Of course I do not want to deal with escaping the damn thing, as in (sh/sh "sh" "-c" "echo gpg-key-string | apt-key add -"). Seems to me that clojure.java.shell doesn't support that, is that correct? So I in fact need to use babashka.process, which allows me to do so via something like (-> (println gpg-key) (process '[apt-key add -])), is that the case?

borkdude18:07:18

@jakub.stastny.pt_serv babashka.process supports :in, so does clojure.java.shell

borkdude18:07:27

(process [...] {:in "foo"})

Jakub Šťastný18:07:25

Oh I missed that one. Thanks @borkdude!

borkdude22:07:18

If someone's interested in the bb-like thing for node, join #tbd. We've got reagent + ink working! https://github.com/borkdude/tbd#reagent

borkdude22:07:33

Also, need better name.

phronmophobic23:07:51

I like bbscript or bs for short, but that's probably bad for SEO