chore: update nbb scripts to be repl friendly

With https://github.com/babashka/nbb/issues/95 done, this allows
all nbb script namespaces to required or used from a repl
This commit is contained in:
Gabriel Horner
2025-03-07 11:49:28 -05:00
parent 1ccdcab8a9
commit 7917afaa45
9 changed files with 9 additions and 9 deletions

View File

@@ -189,5 +189,5 @@
(when (:verbose options') (println "Transacted" (count (d/datoms @conn :eavt)) "datoms"))
(println "Created graph" (str db-name "!")))))
(when (= nbb/*file* (:file (meta #'-main)))
(when (= nbb/*file* (nbb/invoked-file))
(-main *command-line-args*))