Helpers for working with Clojure CLI
Helpers for working with Clojure CLI
(aliases-arg option
aliases
{:keys [elide-when-no-aliases] :or {elide-when-no-aliases false}})(args {:keys [cp deps force repro threads verbose]})Return a cli arguments vector given a map of cli options.
Return a cli arguments vector given a map of cli options.
(classpath aliases deps)Returns the project classpath, with the given extra deps map.
aliases is a vector of keywords with deps.edn aliases to use.
deps ia s map with external dependencies, as specifed on the :deps key of deps.edn.
Returns the project classpath, with the given extra deps map. aliases is a vector of keywords with deps.edn aliases to use. deps ia s map with external dependencies, as specifed on the :deps key of deps.edn.
(clojure-basis-form)(exec-args options)(exec-args {:keys [aliases exec-fn exec-args]} features)Return a cli arguments vector given an exec function to execute.
Return a cli arguments vector given an exec function to execute.
Version ranges for features, min inclusive, max exclusive.
Version ranges for features, min inclusive, max exclusive.
(features)(features version)(features*)(features* version)(main-args options)(main-args {:keys [aliases expr main main-args report]} features)Return a cli arguments vector given an main function to execute.
Return a cli arguments vector given an main function to execute.
(process args options)Execute clojure process.
deps ia s map with external dependencies, as specifed on the :deps key of deps.edn.
args is a vector of arguments to pass.
options is a map of options, as specifed in babashka.process/process. Defaults to {:err :inherit}.
Execute clojure process.
deps ia s map with external dependencies, as specifed on the :deps key
of deps.edn.
args is a vector of arguments to pass.
options is a map of options, as specifed in babashka.process/process.
Defaults to {:err :inherit}.(read-clojure-basis)(version)Return the clojure cli version string
Return the clojure cli version string
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |