This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-19
Channels
- # aleph (11)
- # announcements (1)
- # babashka (9)
- # beginners (90)
- # calva (6)
- # clj-kondo (24)
- # cljs-dev (26)
- # clojure (92)
- # clojure-europe (48)
- # clojure-nl (1)
- # clojure-spec (4)
- # clojure-sweden (2)
- # clojure-uk (41)
- # clojurescript (60)
- # code-reviews (1)
- # conjure (6)
- # core-logic (3)
- # datascript (1)
- # datomic (3)
- # deps-new (1)
- # depstar (4)
- # dirac (3)
- # emacs (8)
- # fulcro (1)
- # helix (27)
- # introduce-yourself (2)
- # jobs (1)
- # off-topic (4)
- # pathom (2)
- # polylith (8)
- # re-frame (3)
- # remote-jobs (1)
- # shadow-cljs (5)
- # spacemacs (2)
- # tools-deps (22)
- # vim (3)
- # xtdb (27)
Cool script to display ns tree: https://github.com/cldwalker/bb-clis#bb-ns-dep-tree
4
8
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
This is by design, so you can do:
(= *file* (System/getProperty "babashka.file"))
to know if the current file is what the user invoked