Liking cljdoc? Tell your friends :D

leiningen.core.main


*cwd*clj


*debug*clj


*exit-process?*clj

Bind to false to suppress process termination.

Bind to false to suppress process termination.
raw docstring

*info*clj


-mainclj

(-main & raw-args)

Command-line entry point.

Command-line entry point.
raw docstring

abortclj

(abort & msg)

Print msg to standard err and exit with a value of 1. Will not directly exit under some circumstances; see exit-process?.

Print msg to standard err and exit with a value of 1.
Will not directly exit under some circumstances; see *exit-process?*.
raw docstring

aliasesclj


apply-taskclj

(apply-task task-name project args)

Resolve task-name to a function and apply project and args if arity matches.

Resolve task-name to a function and apply project and args if arity matches.
raw docstring

debugclj

(debug & args)

Print if debug (from DEBUG environment variable) is truthy.

Print if *debug* (from DEBUG environment variable) is truthy.
raw docstring

default-projectclj

(default-project)

Return the default project used when not in a project directory.

Return the default project used when not in a project directory.
raw docstring

exitclj

(exit)
(exit exit-code & msg)

Exit the process. Rebind exit-process? in order to suppress actual process exits for tools which may want to continue operating. Never call System/exit directly in Leiningen's own process.

Exit the process. Rebind *exit-process?* in order to suppress actual process
exits for tools which may want to continue operating. Never call
System/exit directly in Leiningen's own process.
raw docstring

function-not-foundclj

(function-not-found task & _)

infoclj

(info & args)

Print if info (from LEIN_SILENT environment variable) is truthy.

Print if *info* (from LEIN_SILENT environment variable) is truthy.
raw docstring

leiningen-versionclj

(leiningen-version)

lookup-aliasclj

(lookup-alias task-name project & [not-found])

Recursively look up aliases until the task is not an alias anymore. If task-name is a vector, calls lookup-alias on the first argument and returns a partially applied task. Discards already used aliases.

Recursively look up aliases until the task is not an alias anymore. If
task-name is a vector, calls lookup-alias on the first argument and returns a
partially applied task. Discards already used aliases.
raw docstring

matching-arity?clj

(matching-arity? task args)

option-argclj

(option-arg str)

parse-optionsclj

(parse-options options)

Given a sequence of strings, return a map of command-line-esque options with keyword-ized keys and a list of additional args:

(parse-options ["--chicken"]) => [{:--chicken true} []]

(parse-options ["--beef" "rare"]) => [{:--beef "rare"} []]

(parse-options [":fish" "salmon"]) => [{:fish "salmon"} []]

(parse-options ["salmon" "trout"]) => [{} ["salmon" "trout"]]

(parse-options ["--to-dir" "test2" "--ham"]) => [{:--ham true, :--to-dir "test2"} []]

(parse-options ["--to-dir" "test2" "--ham" "--" "pate"]) => [{:--ham true, :--to-dir "test2"} ["pate"]]

Given a sequence of strings, return a map of command-line-esque
options with keyword-ized keys and a list of additional args:

(parse-options ["--chicken"])
=> [{:--chicken true} []]

(parse-options ["--beef" "rare"])
=> [{:--beef "rare"} []]

(parse-options [":fish" "salmon"])
=> [{:fish "salmon"} []]

(parse-options ["salmon" "trout"])
=> [{} ["salmon" "trout"]]

(parse-options ["--to-dir" "test2" "--ham"])
=> [{:--ham true, :--to-dir "test2"} []]

(parse-options ["--to-dir" "test2" "--ham" "--" "pate"])
=> [{:--ham true, :--to-dir "test2"} ["pate"]]
raw docstring

resolve-and-applyclj

(resolve-and-apply project args)

Entry point for tasks run other tasks as if they were called from the CLI.

Entry point for tasks run other tasks as if they were called from the CLI.
raw docstring

resolve-taskclj

(resolve-task task)
(resolve-task task not-found)

Look up task function and perform partial application if applicable.

Look up task function and perform partial application if applicable.
raw docstring

suggestionsclj

(suggestions task tasks)

Suggest possible misspellings for task from list of tasks.

Suggest possible misspellings for task from list of tasks.
raw docstring

task-argsclj

(task-args [task-name & args] project)

task-not-foundclj

(task-not-found task & _)

tasksclj

(tasks)

Return a list of symbols naming all visible tasks.

Return a list of symbols naming all visible tasks.
raw docstring

user-agentclj

(user-agent)

version-satisfies?clj

(version-satisfies? v1 v2)

versions-match?clj

(versions-match? v1 v2)

warnclj

(warn & args)

Print to stderr if info is truthy.

Print to stderr if *info* is truthy.
raw docstring

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

× close