Fork me on GitHub
#babashka
<
2020-06-04
>
borkdude07:06:14

@jake142 There are a couple of options: 1) add rewrite-clj to babashka. 2) implement as a pod. 3) implement as a bb-like spin-off, say a rewrite-clj-cli. About 1: these criteria should be considered: https://github.com/borkdude/babashka#including-new-libraries-or-classes About 2: the pod approach works well with pure data back and forth or managing some stateful references on the pod side. But rewrite-clj is quite record and protocol-centric which makes it harder to work with as a pod. Maybe something like https://github.com/carocad/parcera could work better in a pod since it returns pure EDN. About 3: This will definitely work.

borkdude07:06:16

Note that there are already a few bb-like CLIs based on sci: bootleg, dad, spire. There could be another one (as described in option 3).

borkdude09:06:01

@jake142 Did an experiment with wrapping parcera here. Seems to work well! https://github.com/babashka/pod-babashka-parcera

nate14:06:53

Woah, TIL about :let in doseq...

jake14216:06:19

This is awesome!

borkdude16:06:27

I'm also excited about this.

jake14216:06:13

I wonder if there’s a world where the config for specific kondo rules could point to some kind of fix script? Perhaps kondo itself could even communicate with parcera using the pod protocol

borkdude16:06:38

I think it's better to keep clj-kondo separate from these scripts. It can output the data that these tools need to build upon. One example of such a tool is https://github.com/borkdude/carve. Carve could now be re-implemented using babashka + pod-babashka-parcera.

borkdude16:06:40

so the tools call clj-kondo instead of the other direction

borkdude11:06:55

Added examples/sort_requires.clj. Works better than I expected

plins17:06:25

hello everyone, Im running a shell command with (sh my-nice-command) but the results are a bit weird

{:exit 0, :out "", :err "\rUpload complete.\n\r .." }

plins17:06:39

if exit is zero, why do I have errors?

borkdude17:06:41

@plins :err contains the output that the process writes to stderr. it could be error information, but also just debug info.

plins18:06:41

ok then thanks 😃