Fork me on GitHub
#babashka
<
2020-11-18
>
tomd09:11:04

What solution do people have for paredit/parinfer -like functionality when writing babashka on the command line? I guess this is a more general clojure problem, but I only write (non-babashka) clojure in emacs buffers or the cider repl, where I have smartparens. Just looking for paren-balancing and slurp+barfing really.

didibus09:11:49

Not sure if it can be used for babashka

tomd09:11:42

ah cool - I'll try it out. thanks

borkdude09:11:34

If the expression becomes too clumsy for the command line I usually put my expression in a .clj file and edit with emacs

👍 1
tomd09:11:46

yeah that's what I've take to doing. Is there a way to use a readline lib like rebel-readline with babashka, or would that be something of interest for the future?

borkdude09:11:41

currently not possible since this relies on jline, maybe something for the future, but probably not super high priority

tomd09:11:56

yeah that's fair enough. thanks!

tomd09:11:16

out of interest @U0K064KQV, how do you get the paredit functionality working with rebel readline using clojure cli?

didibus19:11:53

Add this alias to your ~/.clojure/deps.edn

:rebel {:extra-deps {com.bhauman/rebel-readline {:mvn/version "RELEASE"}}
                   :main-opts  ["-m" "rebel-readline.main"]}
Then at the command line type: clojure -M:rebel

David Pham15:11:47

Is there a way with babashka/clj-kondo to have a call graph of a namespace? A graph showing which functions calls which? :)

David Pham15:11:01

This would help me to know which function to test/how to test it.

borkdude15:11:46

@neo2551 Yes, you can use clj-kondo as a pod from babashka and do something similar to https://github.com/benedekfazekas/morpheus

👏 2
borkdude15:11:11

or just use morpheus directly

nha21:11:25

just made a small github action that installs babashka: https://github.com/turtlequeue/setup-babashka

😎 5
borkdude22:11:59

Good job :)