Fork me on GitHub
#babashka
<
2019-12-11
>
borkdude10:12:20

on the babashka classpath branch:

$ cat /tmp/foo.clj
(ns foo)
(println "hello from foo")
$ ./bb --classpath /tmp "(require '[foo])"
hello from foo

plexus10:12:31

oh this is getting really exciting!

borkdude10:12:39

the idea is to let clojure handle the classpath and you can upload your babashka scripts to github/clojars

borkdude11:12:22

$ CP="$(clojure -Sdeps '{:deps {myscript {:git/url "" :sha "89f66ba2101180a98acf88441693840875288ec9"}}}' -Spath)"
$ ./bb --classpath "$CP" "(require '[myscript]) (myscript/foo)"
hello from script

Filipe Silva11:12:52

bb is getting very sophisticated 😄