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.
I use this for Clojure: https://github.com/bhauman/rebel-readline
Not sure if it can be used for babashka
ah cool - I'll try it out. thanks
If the expression becomes too clumsy for the command line I usually put my expression in a .clj file and edit with emacs
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?
currently not possible since this relies on jline, maybe something for the future, but probably not super high priority
yeah that's fair enough. thanks!
out of interest @didibus, how do you get the paredit functionality working with rebel readline using clojure cli?
Is there a way with babashka/clj-kondo to have a call graph of a namespace? A graph showing which functions calls which? :)
This would help me to know which function to test/how to test it.
@neo2551 Yes, you can use clj-kondo as a pod from babashka and do something similar to https://github.com/benedekfazekas/morpheus
or just use morpheus directly
Thanks :)
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
just made a small github action that installs babashka: https://github.com/turtlequeue/setup-babashka
Good job :)
Feel free to add to https://github.com/borkdude/babashka/blob/master/doc/libraries.md#projects