Liking cljdoc? Tell your friends :D

leiningen.core.main


*cwd*clj

source

*debug*clj

source

*exit-process?*clj

Bind to false to suppress process termination.

Bind to false to suppress process termination.
sourceraw docstring

*info*clj

source

-mainclj

(-main & raw-args)

Command-line entry point.

Command-line entry point.
sourceraw 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?*.
sourceraw docstring

aliasesclj

source

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

debugclj

(debug & args)

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

Print if *debug* (from DEBUG environment variable) is truthy.
sourceraw 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.
sourceraw 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.
sourceraw docstring

function-not-foundclj

(function-not-found task & _)
source

infoclj

(info & args)

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

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

leiningen-versionclj

(leiningen-version)
source

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

matching-arity?clj

(matching-arity? task args)
source

option-argclj

(option-arg str)
source

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"]]
sourceraw 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.
sourceraw 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.
sourceraw docstring

suggestionsclj

(suggestions task tasks)

Suggest possible misspellings for task from list of tasks.

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

task-argsclj

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

task-not-foundclj

(task-not-found task & _)
source

tasksclj

(tasks)

Return a list of symbols naming all visible tasks.

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

user-agentclj

(user-agent)
source

version-satisfies?clj

(version-satisfies? v1 v2)
source

versions-match?clj

(versions-match? v1 v2)
source

warnclj

(warn & args)

Print to stderr if info is truthy.

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

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

× close