Search code examples
clojureboot

Can I evaluate a clojure file in boot?


So, in Debian:

$ cat file.clj
(println "Hello")

$ ls clojure-1.7.0.jar 
clojure-1.7.0.jar

$ java -cp clojure-1.7.0.jar clojure.main -i file.clj
Hello

How do I do this with boot?

Without modifying file.clj, or setting up extra project files, or any other form of pointless ceremony.


Solution

  • This seems to work:

    boot -f file.clj