Liking cljdoc? Tell your friends :D

hara.module.deps


all-loaded

(all-loaded coord)
(all-loaded coord loader)

returns all the loaded artifacts of the same group and name

(all-loaded 'org.clojure/clojure) ;;=> ('org.clojure:clojure:jar:<version>) => sequential?

returns all the loaded artifacts of the same group and name

(all-loaded 'org.clojure/clojure)
;;=> ('org.clojure:clojure:jar:<version>)
=> sequential?
raw docstring

all-loaded-artifacts

(all-loaded-artifacts)
(all-loaded-artifacts type)
(all-loaded-artifacts loader type)

returns all loaded artifacts

(all-loaded-artifacts)

returns all loaded artifacts

(all-loaded-artifacts)
raw docstring

clean

(clean artifact {:keys [full simulate]})

cleans the maven entries for the artifact, :full deletes all the versions

(clean '[org.clojure/clojure "2.4.8"] {:full true :simulate true}) => set?

cleans the maven entries for the artifact, `:full` deletes all the versions

(clean '[org.clojure/clojure "2.4.8"]
       {:full true
        :simulate true})
=> set?
raw docstring

current-version

(current-version artifact)

finds the current artifact version for a given classloader

(current-version 'org.clojure/clojure) => string?

finds the current artifact version for a given classloader

(current-version 'org.clojure/clojure)
=> string?
raw docstring

load

(load coords)
(load coords loader)

loads all artifacts in list, unloading previous versions of the same artifact

loads all artifacts in list, unloading previous versions of the same artifact
raw docstring

load-artifact

(load-artifact coord)
(load-artifact coord loader)

loads an artifact into the system

(load-artifact '[org.clojure/clojure "1.9.0"])

loads an artifact into the system

(load-artifact '[org.clojure/clojure "1.9.0"])
raw docstring

loaded-artifact?

(loaded-artifact? coord)
(loaded-artifact? coord loader)

checks if artifact has been loaded

(loaded-artifact? '[org.clojure/clojure "1.9.0"]) => true

checks if artifact has been loaded

(loaded-artifact? '[org.clojure/clojure "1.9.0"])
=> true
raw docstring

resolve

(resolve x)
(resolve x context)
(resolve x context {:keys [tag], :or {tag :path}, :as opts})

resolves a class or namespace within a context

(resolve 'clojure.core ['org.clojure/clojure (current-version 'org.clojure/clojure)]) => (contains [string? "clojure/core.clj"])

(resolve 'wrong.namespace ["org.clojure:clojure:1.9.0"] {:tag :coord}) => nil

resolves a class or namespace within a context

(resolve 'clojure.core
         ['org.clojure/clojure
          (current-version 'org.clojure/clojure)])
=> (contains [string?
              "clojure/core.clj"])

(resolve 'wrong.namespace
         ["org.clojure:clojure:1.9.0"]
         {:tag :coord})
=> nil
raw docstring

resolve-classloader

(resolve-classloader x)
(resolve-classloader x loader)

resolves a class or namespace to a physical location

(resolve-classloader String) => (contains [anything #"java/lang/String.class"])

(resolve-classloader 'hara.test) => (contains [nil (str (fs/path "src/hara/test.clj"))])

resolves a class or namespace to a physical location

(resolve-classloader String)
=> (contains
    [anything #"java/lang/String.class"])

(resolve-classloader 'hara.test)
=> (contains 
    [nil (str (fs/path "src/hara/test.clj"))])
raw docstring

resolve-jar-entry

(resolve-jar-entry x artifact)
(resolve-jar-entry x artifact {:keys [tag], :or {tag :path}})

resolves a class or namespace within a jar

(resolve-jar-entry 'clojure.core ['org.clojure/clojure (current-version 'org.clojure/clojure)]) => (contains-in [string? "clojure/core.clj"])

(resolve-jar-entry 'clojure.core "org.clojure:clojure:1.9.0" {:tag :coord}) => '[[org.clojure/clojure "1.9.0"] "clojure/core.clj"]

resolves a class or namespace within a jar

(resolve-jar-entry 'clojure.core
                   ['org.clojure/clojure
                    (current-version 'org.clojure/clojure)])
=> (contains-in [string?
                 "clojure/core.clj"])

(resolve-jar-entry 'clojure.core
                   "org.clojure:clojure:1.9.0"
                   {:tag :coord})
=> '[[org.clojure/clojure "1.9.0"]
     "clojure/core.clj"]
raw docstring

unload

(unload coords)
(unload coords loader version)

unloads all artifacts in list

unloads all artifacts in list
raw docstring

unload-artifact

(unload-artifact coord)
(unload-artifact coord loader)

unloads an artifact from the system

(unload-artifact '[org.clojure/clojure "1.9.0"])

unloads an artifact from the system

(unload-artifact '[org.clojure/clojure "1.9.0"])
raw docstring

version-map

(version-map)

returns all the loaded artifacts and their versions (version-map) => map?

returns all the loaded artifacts and their versions
(version-map)
=> map?
raw docstring

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

× close