babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
Michael Lan 2021-06-06T01:44:26.411600Z

Is it possible to get syntax highlighting and/or paren matching when using babashka on the command line?

borkdude 2021-06-06T07:15:09.412500Z

@michaellan202 Note entirely sure what you mean, but you can get syntax highlighting with a tool called bat which is a replacement for cat. For editing code, I would just recommend doing that in an editor, possibly connected to the socket server or nrepl server of babashka.

Michael Lan 2021-06-06T15:34:26.414300Z

sorry for the bad explanation, I meant if it would be possible to get syntax highlighting when I do bb '(print 3)' for example. It is more of a tooling question than a babashka question, sorry about that 😅

borkdude 2021-06-06T15:37:32.414800Z

@michaellan202 right, yeah, you can use https://github.com/borkdude/puget-cli to get highlighting of EDN output

borkdude 2021-06-06T15:38:18.415300Z

bat also works:

echo '(inc 1)' | bat -l clojure

Michael Lan 2021-06-06T15:41:34.415500Z

awesome, thanks!