Liking cljdoc? Tell your friends :D

hara.module.deps


all-loadedclj

(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-artifactsclj

(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

cleanclj

(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-versionclj

(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

loadclj

(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-artifactclj

(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?clj

(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

resolveclj

(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-classloaderclj

(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-entryclj

(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

unloadclj

(unload coords)
(unload coords loader version)

unloads all artifacts in list

unloads all artifacts in list
raw docstring

unload-artifactclj

(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-mapclj

(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