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 {:keys [config-path id operation]})Takes in a map containing
:config-path - the path to the config file:id - the CLI argument:operation - :add, :update or :removeCreates 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 [operation dep-exists identifier] :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:updateTakes 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 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 |