mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
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:
@@ -83,5 +83,5 @@
|
||||
#_(d/transact! conn blocks-tx)
|
||||
(println "Created graph" (str db-name " with " (count (d/datoms @conn :eavt)) " datoms!"))))
|
||||
|
||||
(when (= nbb/*file* (:file (meta #'-main)))
|
||||
(when (= nbb/*file* (nbb/invoked-file))
|
||||
(-main *command-line-args*))
|
||||
|
||||
@@ -222,5 +222,5 @@
|
||||
(d/transact! conn block-props-tx)
|
||||
(println "Created graph" (str db-name " with " (count (d/datoms @conn :eavt)) " datoms!"))))
|
||||
|
||||
(when (= nbb/*file* (:file (meta #'-main)))
|
||||
(when (= nbb/*file* (nbb/invoked-file))
|
||||
(-main *command-line-args*))
|
||||
|
||||
@@ -423,5 +423,5 @@
|
||||
(when (:debug options) (write-debug-file @conn))
|
||||
(println "Created graph" (str db-name "!"))))
|
||||
|
||||
(when (= nbb/*file* (:file (meta #'-main)))
|
||||
(when (= nbb/*file* (nbb/invoked-file))
|
||||
(-main *command-line-args*))
|
||||
|
||||
Reference in New Issue
Block a user