Works... babashka is really cool. Thanks
Please include more details. What error do you see, etc. Perhaps it’s just a missing function.
Cool script to display ns tree: https://github.com/cldwalker/bb-clis#bb-ns-dep-tree
that whole repo is nice
Is there a way to get the name the script was executed with? It’s usually the first argument, but it appears babashka strips it off. For example:
bb -e true => bb
./my-script.bb 1 2 3 => ./my-script.bb
@max.r.rothman the file being executed is available in (System/getProperty "babashka.file")
That gets the file, but it doesn’t tell you how the script was executed. For example, if the script has a shebang and is in your path, it still shows the full path to the file
it has the absolute path yes, like *file*
This is by design, so you can do:
(= *file* (System/getProperty "babashka.file"))
to know if the current file is what the user invoked
If your question is: how do I get a filename from an absolute path, you can use babashka.fs/file-name