Bind to false to suppress process termination.
Bind to false to suppress process termination.
(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?*.
(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.
(debug & args)
Print if debug (from DEBUG environment variable) is truthy.
Print if *debug* (from DEBUG environment variable) is truthy.
(default-project)
Return the default project used when not in a project directory.
Return the default project used when not in a project directory.
(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.
(info & args)
Print if info (from LEIN_SILENT environment variable) is truthy.
Print if *info* (from LEIN_SILENT environment variable) is truthy.
(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.
(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"]]
(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.
(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.
(suggestions task tasks)
Suggest possible misspellings for task from list of tasks.
Suggest possible misspellings for task from list of tasks.
(tasks)
Return a list of symbols naming all visible tasks.
Return a list of symbols naming all visible tasks.
(warn & args)
Print to stderr if info is truthy.
Print to stderr if *info* is truthy.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close