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.
(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`.
(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`
(get-config)
Looks in the current directory for the following files
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
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close