Methods that operate on zipper objects created by rewrite-clj.
Methods that operate on zipper objects created by rewrite-clj.
(append-dependency {:keys [argument deps-type identifier zloc]})Takes a map that satisfies the depo.schema/PROCEDURE spec.
Appends a dependency to the dependency zipper object and returns it.
Takes a map that satisfies the `depo.schema/PROCEDURE` spec. Appends a dependency to the dependency zipper object and returns it.
(get-all-dependency-names config-path)TO REWRITE
TO REWRITE
(get-dependency-data zloc identifier)Gets the corresponding data from a dependency zipper object.
This would return
{:mvn/version ...} or {:local/root} if zloc is a map zipperzloc is a vector zipperGets the corresponding data from a dependency zipper object.
This would return
- `{:mvn/version ...}` or `{:local/root}` if `zloc` is a map zipper
- the version number as a string if `zloc` is a vector zipper(get-deps zloc keys project-type)zloc - the configuration file parsed as a zipper objectkeys - a vector of keys to locate the dependencies in the configuration fileproject-type - either :shadow, :lein or :defaultGets the dependency zipper object from zloc
- `zloc` - the configuration file parsed as a zipper object - `keys` - a vector of keys to locate the dependencies in the configuration file - `project-type` - either `:shadow`, `:lein` or `:default` Gets the dependency zipper object from `zloc`
(remove-dependency {:keys [deps-type identifier zloc]})Takes a map that satisfies the depo.schema/PROCEDURE spec.
Removes a dependency the dependency zipper object and returns it.
Takes a map that satisfies the `depo.schema/PROCEDURE` spec. Removes a dependency the dependency zipper object and returns it.
(traverse-zip-map zloc keys)zloc - a zipper object created by rewrite-cljkeys - a vector of keysTraverses the zipper object using z/get, z being
the rewrite-clj.zip namespace, using keys from left
to right
- `zloc` - a zipper object created by rewrite-clj - `keys` - a vector of keys Traverses the zipper object using `z/get`, `z` being the `rewrite-clj.zip` namespace, using `keys` from left to right
(update-dependency {:keys [argument deps-type identifier zloc dep-data]})Takes a map that satisfies the depo.schema/PROCEDURE spec.
Updates a dependency in the dependency zipper object and returns it.
Takes a map that satisfies the `depo.schema/PROCEDURE` spec. Updates a dependency in the dependency zipper object and returns it.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |