babashka

Ryan 2026-01-20T16:05:35.424989Z

Maybe a dumb question : I've got sort of an elaborate bb.edn file and I want to use cursive's refactoring tools to like, rename some defs safely and cursive I think doesn't know what to do because its an edn file.. I've overridden the file type to be clj but still no dice.. any tips?

borkdude 2026-01-20T16:07:16.819519Z

I recommend not putting too much code in bb.edn, just use :requires with a file

Ryan 2026-01-20T16:08:23.902599Z

yeah.. it was my first one, lesson learned 😄 nothing too onerous in there just a lot of string catting command line arguments into paths and .. a good refactor is overdue

borkdude 2026-01-20T16:09:41.097109Z

just fyi, shell doesn't need stuff to be concat-ed, you can pass it separate arguments. maybe this isn't your issue and you already knew it, but something that I see happening sometimes is (shell (str .. .. ..)) while (shell .. .. ..) works

Ryan 2026-01-20T16:27:20.462839Z

I am guilty of some shell (str's here and there.. its a bit of an archeological dig. . lines 30-66 were is this file's (shell (str....)) era. its a built script that was originally a bash file and make file combo so it almost feels like it would be antithetical to its heritage for it to be too tidy 😉

borkdude 2026-01-20T16:29:32.169259Z

:-)