Liking cljdoc? Tell your friends :D

clojure.tools.deps.tree


calc-traceclj

(calc-trace)
(calc-trace opts)

Like calc-basis, but create and return the dep expansion trace. The trace can be passed to trace->tree to get tree data.

The opts map includes the same opts accepted by clojure.tools.deps/create-basis. By default, uses the root, user, and project deps and no argmaps (essentially the same classpath you get by default from the Clojure CLI).

Each dep source value can be :standard, a string path, a deps edn map, or nil. Sources are merged in the order - :root, :user, :project, :extra.

Aliases refer to argmaps in the merged deps that will be supplied to the basis subprocesses (tool, resolve-deps, make-classpath-map).

Options: :dir - directory root path, defaults to current directory :root - dep source, default = :standard :user - dep source, default = :standard :project - dep source, default = :standard ("./deps.edn") :extra - dep source, default = nil :aliases - coll of aliases of argmaps to apply to subprocesses

Like calc-basis, but create and return the dep expansion trace. The trace
can be passed to trace->tree to get tree data.

The opts map includes the same opts accepted by clojure.tools.deps/create-basis.
By default, uses the   root, user, and project deps and no argmaps (essentially the same
classpath you get by default from the Clojure CLI).

Each dep source value can be :standard, a string path, a deps edn map, or nil.
Sources are merged in the order - :root, :user, :project, :extra.

Aliases refer to argmaps in the merged deps that will be supplied to the basis
subprocesses (tool, resolve-deps, make-classpath-map).

Options:
  :dir     - directory root path, defaults to current directory
  :root    - dep source, default = :standard
  :user    - dep source, default = :standard
  :project - dep source, default = :standard ("./deps.edn")
  :extra   - dep source, default = nil
  :aliases - coll of aliases of argmaps to apply to subprocesses
sourceraw docstring

(print-tree tree {:keys [indent] :or {indent 2} :as opts})
(print-tree {:keys [children] :as tree} indented opts)

Print the tree to the console. Options: :indent Indent spacing (default = 2) :hide-libs Set of libs to ignore as deps under top deps, default = #{org.clojure/clojure}

Print the tree to the console.
Options:
  :indent    Indent spacing (default = 2)
  :hide-libs Set of libs to ignore as deps under top deps, default = #{org.clojure/clojure}
sourceraw docstring

trace->treeclj

(trace->tree trace)

Convert a deps trace data structure into a deps tree.

A deps tree has the structure of the full dependency expansion. Each node of the tree is a map from lib to coord-info with at least these keys: :lib - library symbol :coord - the coord map that was used (may not be the original coord if replaced due to default-deps or override-deps) :include - boolean of whether this node is included in the returned deps :reason - why the node was or was not included :children - vector of child nodes

Convert a deps trace data structure into a deps tree.

A deps tree has the structure of the full dependency expansion.
Each node of the tree is a map from lib to coord-info with at least these keys:
  :lib - library symbol
  :coord - the coord map that was used (may not be the original coord if replaced
           due to default-deps or override-deps)
  :include - boolean of whether this node is included in the returned deps
  :reason - why the node was or was not included
  :children - vector of child nodes
sourceraw docstring

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

× close