Closed mtwomey closed 6 months ago
Thanks for the bug report. I can go ahead and add the .bb
extension no problem.
As for installing any file extension, I need to think about this some more given that we're using the file extension for other use cases, such as .jar
files.
To me it makes sense to treat any extension as a bb script, unless it's a specific extension like .jar
It seems .cljc
isn't treated as a script either.
@rads Thank you, this does solve my issue. I do wonder if @borkdude 's thought about "reversing" the logic so that is treats files as bb scripts by default (with specific exceptions) might have more utility in the long run?
Makes sense. I reopened this issue and will follow up with some more changes later.
Since @rads doesn't maintain this tool anymore (or soon-ish) and this issue hit some other person as well recently, I'll have a look at this issue soon-ish, hopefully.
This is now fixed in 0.2.3 (any extension can be used).
Thanks a lot @rads !
It would be preferable if you could install local scripts not ending in
.clj
usingbbin install
.For example, I personally prefer to name my babashka scripts with the
.bb
extension to differentiate them.