Liking cljdoc? Tell your friends :D

mranderson.main

Command-line interface to MrAnderson. A thin wrapper over mranderson.core/inline-deps so MrAnderson can be run directly, without Leiningen - and, down the road, as a GraalVM native image (see #36).

Run it with the dependency coordinates to inline as positional arguments:

clojure -M -m mranderson.main -p com.example.inlined -s src \
  org.clojure/tools.namespace:1.5.1 rewrite-clj:1.2.54

No :gen-class here on purpose: it would make MrAnderson's own plugin AOT this namespace during the self-inlining build. The native-image build (#36) will AOT it in its own build context instead.

Command-line interface to MrAnderson. A thin wrapper over
`mranderson.core/inline-deps` so MrAnderson can be run directly, without
Leiningen - and, down the road, as a GraalVM native image (see #36).

Run it with the dependency coordinates to inline as positional arguments:

    clojure -M -m mranderson.main -p com.example.inlined -s src \
      org.clojure/tools.namespace:1.5.1 rewrite-clj:1.2.54

No `:gen-class` here on purpose: it would make MrAnderson's own plugin AOT this
namespace during the self-inlining build. The native-image build (#36) will AOT
it in its own build context instead.
raw docstring

-mainclj

(-main & args)
source

options->optsclj

(options->opts options coords)

Maps the parsed CLI options map and positional dependency coords to the options map mranderson.core/inline-deps expects.

Maps the parsed CLI `options` map and positional dependency `coords` to the
options map `mranderson.core/inline-deps` expects.
sourceraw docstring

parse-coordinateclj

(parse-coordinate coord)

Parses a group/artifact:version (or artifact:version) coordinate string into a [lib version] vector. Throws on a string with no version segment.

Parses a `group/artifact:version` (or `artifact:version`) coordinate string
into a `[lib version]` vector. Throws on a string with no version segment.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close