Liking cljdoc? Tell your friends :D

clj-new.helpers

The top-level logic for the clj-new create/generate entry points.

The top-level logic for the clj-new create/generate entry points.
raw docstring

*debug*clj

source

*template-version*clj

source

*use-snapshots?*clj

source

createclj

(create {:keys [args name template]})

Exposed to clj-new command-line with simpler signature.

Exposed to clj-new command-line with simpler signature.
sourceraw docstring

create*clj

(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.
sourceraw docstring

create-xclj

(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.
sourceraw docstring

generate-codeclj

(generate-code {:keys [args generate]})

Exposed to clj new task with simpler signature.

Exposed to clj new task with simpler signature.
sourceraw docstring

generate-code*clj

(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.
sourceraw docstring

generate-xclj

(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.
sourceraw docstring

resolve-and-loadclj

(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.
sourceraw docstring

resolve-remote-templateclj

(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.
sourceraw docstring

resolve-templateclj

(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).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close