Liking cljdoc? Tell your friends :D

k16.kmono.core.packages


glob-matches?clj

(glob-matches? glob kw|sym)

Compare a namespaced keyword or symbol against a keyword glob.

The keyword glob should be provided as a keyword where either the namespace or name component can be substituted with a *. For example the below are all valid globs

(glob-matches? :*/* :a/b) ;; true
(glob-matches? :a/* :a/b) ;; true
(glob-matches? :*/b :a/b) ;; true
(glob-matches? :*/b 'a/b) ;; true

(glob-matches? :a/a :a/b) ;; false
Compare a namespaced keyword or symbol against a keyword `glob`.

The keyword `glob` should be provided as a keyword where either the namespace
or name component can be substituted with a `*`. For example the below are all
valid globs

```clojure
(glob-matches? :*/* :a/b) ;; true
(glob-matches? :a/* :a/b) ;; true
(glob-matches? :*/b :a/b) ;; true
(glob-matches? :*/b 'a/b) ;; true

(glob-matches? :a/a :a/b) ;; false
```
sourceraw docstring

name-matches?clj

(name-matches? globs)

A predicate-fn constructor (returns a predicate-fn) designed to be used with k16.kmono.core.graph/filter-by.

Compares a give pkg :fqn against a given set of globs in the format described by glob-matches?. Returns true if a match is found.

(core.graph/filter-by (name-matches? [:*/*]))
A `predicate-fn` constructor (returns a `predicate-fn`) designed to be used
with [[k16.kmono.core.graph/filter-by]].

Compares a give `pkg` :fqn against a given set of `globs` in the format
described by [[glob-matches?]]. Returns true if a match is found.

```clojure
(core.graph/filter-by (name-matches? [:*/*]))
```
sourceraw docstring

resolve-packagesclj

(resolve-packages project-root workspace-config)

Resolve the packages graph for a clojure project.

This will find all packages as described by the given workspace-config and will use them to build a graph of all workspace packages and their dependencies.

See k16.kmono.core.schema/?PackageMap for a schema of the returned package map.

Resolve the packages graph for a clojure project.

This will find all packages as described by the given `workspace-config` and
will use them to build a graph of all workspace packages and their
dependencies.

See [[k16.kmono.core.schema/?PackageMap]] for a schema of the returned package
map.
sourceraw docstring

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

× close