ALPHA - Not yet released

Note: currently only supports .clj files.

Note: no explicit windowa support.

makejack.api.core

Main API namespace for tools designed to work with project.edn and mj.edn

*debug*

dynamic

Bound to true when --debug is specified.

*print-edn-tagged-literals*

dynamic

*verbose*

dynamic

Bound to true when --verbose is specified.

default-jar-name

(default-jar-name {:keys [jar-type], :as project})

Helper to return the default jar file name.

When the :jar-type key of the project map specifies :uberjar, then the name will be for an uberjar.

deps-paths

(deps-paths deps aliases)

Helper to return the paths for deps with the given aliases applied.

aliases is a vector of keywords with deps.edn aliases to use.

Returns the :paths value, with :extra-paths from the specified aliases.

error

(error message)(error message exit-code)

Exit with the given error message and exit code. The default exit-code is 1,

load-config

(load-config & [{:keys [dir], :as options}])

Load a map containing the project and the mj config.

load-config*

(load-config* & [{:keys [dir], :as options}])

Load a map containing the project and the mj config.

load-deps

Load the deps.edn file.

load-mj

(load-mj & [{:keys [dir], :as options}])

Load the mj.edn file.

load-mj*

(load-mj* & [{:keys [dir], :as options}])

load-project*

(load-project* & [{:keys [dir], :as options}])

mj-path

(mj-path dir)

orgininal-pattern-print-method

process

(process args options)

Execute a process.

args is a vector of arguments, the first of which is the program to execute. The arguments are used as strings.

options is a map of options, as specifed in babashka.process/process. Defaults to {:err :inherit}.

project-description

(project-description {:keys [group-id name version], :as _project})

project-path

(project-path dir)

relative-to-resolver

(relative-to-resolver dir)

Resolves relative to the source file, or to the given directory.

resolve-source

(resolve-source {:keys [resolver], :as _options} value)

verbose-println

(verbose-println & args)

with-output-bindings

macro

(with-output-bindings [options] & body)