The top-level logic for the clj-new create/generate entry points.
The top-level logic for the clj-new create/generate entry points.
(create {:keys [args name template]})
Exposed to clj-new command-line with simpler signature.
Exposed to clj-new command-line with simpler signature.
(create* template-name project-name args)
Given a template name, a project name and list of template arguments, perform sanity checking on the project name and, if it's sane, then generate the project from the template.
Given a template name, a project name and list of template arguments, perform sanity checking on the project name and, if it's sane, then generate the project from the template.
(create-x {:keys [env force help output query snapshot verbose version args name
template]
:or {verbose 0}})
Project creation entry point with a hash map.
Project creation entry point with a hash map.
(generate-code {:keys [args generate]})
Exposed to clj new task with simpler signature.
Exposed to clj new task with simpler signature.
(generate-code* template-name prefix generations args)
Given an optional template name, an optional path prefix, a list of things to generate (type, type=name), and an optional set of arguments for the generator, resolve the template (if provided), and then resolve and apply each specified generator.
Given an optional template name, an optional path prefix, a list of things to generate (type, type=name), and an optional set of arguments for the generator, resolve the template (if provided), and then resolve and apply each specified generator.
(generate-x {:keys [force help prefix snapshot template version args generate]
:or {prefix "src"}})
Project creation entry point with a hash map.
Project creation entry point with a hash map.
(resolve-and-load deps resolve-args)
Given a deps map and an extra-deps map, resolve the dependencies, figure out the classpath, and load everything into our (now dynamic) classloader.
Given a deps map and an extra-deps map, resolve the dependencies, figure out the classpath, and load everything into our (now dynamic) classloader.
(resolve-remote-template template-name)
Given a template name, attempt to resolve it as a clj template first, then as a Boot template, then as a Leiningen template. Return the type of template we found and the final, derived template-name.
Given a template name, attempt to resolve it as a clj template first, then as a Boot template, then as a Leiningen template. Return the type of template we found and the final, derived template-name.
(resolve-template template-name)
Given a template name, resolve it to a symbol (or exit if not possible).
Given a template name, resolve it to a symbol (or exit if not possible).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close