Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

sample.project.clj needs a detailed explanation at :main #710

Closed
acardona opened this Issue · 1 comment

2 participants

@acardona

Would be nice if the "sample.project.clj" was more specific about :main. For example, it could say that it expects in it the class, and not the function to run; also, it could say that the "main" function has to be like:

(defn -main [& args]
... )

Thanks for leinigen!

@michaelklishin
Collaborator

sample.project.clj has:

  ;; The -main function in this namespace will be run at launch if you
  ;; create an uberjar. Set :skip-aot metadata on this symbol to use
  ;; it for other things like the run task or shell wrappers without
  ;; bringing in AOT if you don't need an executable uberjar.
  :main org.example.sample

I will update it to use a more realistic example but we probably don't want sample.project.clj to be a Clojure tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.