Liking cljdoc? Tell your friends :D

depo.zoperations

Methods that operate on zipper objects created by rewrite-clj.

Methods that operate on zipper objects created by
rewrite-clj.
raw docstring

append-dependencyclj

(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.
sourceraw docstring

get-all-dependency-namesclj

(get-all-dependency-names config-path)

TO REWRITE

TO REWRITE
sourceraw docstring

get-dependency-dataclj

(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 zipper
  • the version number as a string if zloc is a vector zipper
Gets 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
sourceraw docstring

get-dependency-typeclj

(get-dependency-type deps)

TO DEPRECATE

TO DEPRECATE
sourceraw docstring

get-depsclj

(get-deps zloc keys project-type)
  • 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

- `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`
sourceraw docstring

remove-dependencyclj

(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.
sourceraw docstring

traverse-zip-mapclj

(traverse-zip-map zloc keys)
  • 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

- `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
sourceraw docstring

update-dependencyclj

(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.
sourceraw docstring

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

× close