(collect)
(collect packages lookups project)
(collect packages
lookups
project
{:keys [overlapped missing] :or {overlapped :error missing :none}})
cellects all information given lookups and project
(-> (collect -packages- -lookups- (project/project)) (get 'hara/core.version))
cellects all information given lookups and project (-> (collect -packages- -lookups- (project/project)) (get 'hara/core.version))
(collect-entries packages lookups)
collects all entries given packages and lookups
(-> (collect-entries -packages- -lookups-) (get-in '[hara/core.version :entries])) => '#{[:clj hara.core.version]}
collects all entries given packages and lookups (-> (collect-entries -packages- -lookups-) (get-in '[hara/core.version :entries])) => '#{[:clj hara.core.version]}
(collect-entries-single package lookup)
collects all namespaces for given lookup and package
(collect-entries-single (get -packages- 'hara/core.version) (:clj -lookups-)) => '(hara.core.version)
collects all namespaces for given lookup and package (collect-entries-single (get -packages- 'hara/core.version) (:clj -lookups-)) => '(hara.core.version)
(collect-external-deps packages)
collects dependencies from the local system
(collect-external-deps '{:a {:dependencies [org.clojure/clojure]}}) => '{:a {:dependencies ([org.clojure/clojure "1.9.0"])}}
collects dependencies from the local system (collect-external-deps '{:a {:dependencies [org.clojure/clojure]}}) => '{:a {:dependencies ([org.clojure/clojure "1.9.0"])}}
(collect-internal-deps packages)
collects all internal dependencies
(-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (collect-internal-deps) (get-in ['hara/test :internal])) => '#{hara/io.file hara/base hara/function.task hara/io.project}
collects all internal dependencies (-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (collect-internal-deps) (get-in ['hara/test :internal])) => '#{hara/io.file hara/base hara/function.task hara/io.project}
(collect-linkages packages lookups)
collects all imports and exports of a package
(-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (get 'hara/core.version) (select-keys [:imports :exports])) => '{:imports #{[:clj hara.function]}, :exports #{[:clj hara.core.version]}}
collects all imports and exports of a package (-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (get 'hara/core.version) (select-keys [:imports :exports])) => '{:imports #{[:clj hara.function]}, :exports #{[:clj hara.core.version]}}
(collect-transfers packages lookups project)
collects all files that are packaged
(-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (collect-internal-deps) (collect-transfers -lookups- (project/project)) (get-in ['hara/core.version :files]) sort) => (contains-in [[string? "hara/core/version.clj"]])
collects all files that are packaged (-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (collect-internal-deps) (collect-transfers -lookups- (project/project)) (get-in ['hara/core.version :files]) sort) => (contains-in [[string? "hara/core/version.clj"]])
(create-file-lookups project)
creates file-lookups for clj, cljs and cljc files
(-> (create-file-lookups (project/project)) (get-in [:clj 'hara.core.version])) => (str (fs/path "src/hara/core/version.clj"))
creates file-lookups for clj, cljs and cljc files (-> (create-file-lookups (project/project)) (get-in [:clj 'hara.core.version])) => (str (fs/path "src/hara/core/version.clj"))
(file-linkage path)
returns the exports and imports of a given file
(file-linkage "src/hara/deploy/linkage/common.clj") => '{:exports #{[:class hara.deploy.linkage.common.FileInfo] [:clj hara.deploy.linkage.common]}, :imports #{[:clj hara.io.file] [:clj hara.function]}}
returns the exports and imports of a given file (file-linkage "src/hara/deploy/linkage/common.clj") => '{:exports #{[:class hara.deploy.linkage.common.FileInfo] [:clj hara.deploy.linkage.common]}, :imports #{[:clj hara.io.file] [:clj hara.function]}}
(missing-entries packages lookups)
finds missing entries given packages and lookup
(missing-entries '{b {:name b :entries #{[:clj hara.1] [:clj hara.2]}}} '{:clj {hara.1 "" hara.2 "" hara.3 ""}}) => '{:clj {hara.3 ""}}
finds missing entries given packages and lookup (missing-entries '{b {:name b :entries #{[:clj hara.1] [:clj hara.2]}}} '{:clj {hara.1 "" hara.2 "" hara.3 ""}}) => '{:clj {hara.3 ""}}
(overlapped-entries packages)
finds any overlapped entries for given map
(overlapped-entries '{a {:name a :entries #{[:clj hara.1]}} b {:name b :entries #{[:clj hara.1] [:clj hara.2]}}}) => '([#{a b} #{[:clj hara.1]}])
finds any overlapped entries for given map (overlapped-entries '{a {:name a :entries #{[:clj hara.1]}} b {:name b :entries #{[:clj hara.1] [:clj hara.2]}}}) => '([#{a b} #{[:clj hara.1]}])
(overlapped-entries-single x heap)
finds any overlaps between entries
(overlapped-entries-single '{:name a :entries #{[:clj hara.1]}} '[{:name b :entries #{[:clj hara.1] [:clj hara.2]}}]) => '([#{a b} #{[:clj hara.1]}])
finds any overlaps between entries (overlapped-entries-single '{:name a :entries #{[:clj hara.1]}} '[{:name b :entries #{[:clj hara.1] [:clj hara.2]}}]) => '([#{a b} #{[:clj hara.1]}])
(read-packages)
(read-packages {:keys [root file] :as input})
reads in a list of packages to
(-> (read-packages {:file "config/packages.edn"}) (get 'hara/core.version)) => (contains {:description string? :include '[[hara.core.version :complete]], :name 'hara/core.version})
reads in a list of packages to (-> (read-packages {:file "config/packages.edn"}) (get 'hara/core.version)) => (contains {:description string? :include '[[hara.core.version :complete]], :name 'hara/core.version})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close