Liking cljdoc? Tell your friends :D

depo.dispatch

Functions related to the control flow of the CLI, as well as IO operations, such as reading and writing the config.

Functions related to the control flow of the CLI,
as well as IO operations, such as reading and writing the config.
raw docstring

apply-operationclj

(apply-operation args-in)

Takes in a map containing

  • :config-path - the path to the config file
  • :id - the CLI argument
  • :operation - :add, :update or :remove

Creates a depo.schema/PROCEDURE map to dispatch operations. It writes the resulting configuration into config-path.

Takes in a map containing
- `:config-path` - the path to the config file
- `:id` - the CLI argument 
- `:operation` - `:add`, `:update` or `:remove`

Creates a `depo.schema/PROCEDURE` map to dispatch operations.
It writes the resulting configuration into `config-path`. 
sourceraw docstring

create-procedureclj

(create-procedure {:keys [config-path id operation]})
source

dispatchclj

(dispatch {:keys [argument operation dep-exists identifier zloc] :as procedure})

Takes in a depo.schema/PROCEDURE map and dispatches the appropriate operations on it. Returns a zipper object after the operation.

Operations

  • :add
  • :remove
  • :update
Takes in a `depo.schema/PROCEDURE` map and
dispatches the appropriate operations on it.
Returns a zipper object after the operation.

Operations
- `:add`
- `:remove`
- `:update`
sourceraw docstring

get-configclj

(get-config)

Looks in the current directory for the following files

  • deps.edn
  • project.clj
  • shadow-cljs.edn
  • bb.edn

Returns the a string matching the first file that it finds.

Returns nil otherwise

Looks in the current directory for the following files
- deps.edn
- project.clj
- shadow-cljs.edn
- bb.edn

Returns the a string matching the first file that it finds.

Returns nil otherwise
sourceraw docstring

ignore-passclj

(ignore-pass {:keys [dep-data deps-type identifier] :as procedure} f)

Takes in a depo.schema/PROCEDURE map and checks whether the operation f should be skipped.

Takes in a `depo.schema/PROCEDURE` map and 
checks whether the operation `f` should be skipped.
sourceraw docstring

skip-procedureclj

(skip-procedure {:keys [zloc]} & reason)

Takes in a depo.schema/PROCEDURE map and returns it, printing reason on the way.

Takes in a `depo.schema/PROCEDURE` map and returns it,
printing `reason` on the way.
sourceraw docstring

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

× close