(dep-coords content clojars scope)Coordinate of clojars where the module belongs, or :unreadable, or nil.
Where matters, and a substring search over the file gets it wrong. The
generated deps.edn lists wagoe-devtools, wagoe-ai, wagoe-scaffolder,
wagoe-tools and wagoe-jobs inside the :mcp alias, which is a launcher for
the MCP server and not the app's classpath. wagoe add ai read the file as
text, found the name in that alias, and treated the module as installed —
printing success and writing nothing.
deps.edn is plain EDN, so this reads it. :unreadable when it will not
parse: writing into a file we cannot read risks a duplicate key, and a
deps.edn with a duplicate key does not load at all.
Coordinate of `clojars` where the module belongs, or `:unreadable`, or nil. Where matters, and a substring search over the file gets it wrong. The generated deps.edn lists wagoe-devtools, wagoe-ai, wagoe-scaffolder, wagoe-tools and wagoe-jobs inside the `:mcp` alias, which is a launcher for the MCP server and not the app's classpath. `wagoe add ai` read the file as text, found the name in that alias, and treated the module as installed — printing success and writing nothing. deps.edn is plain EDN, so this reads it. `:unreadable` when it will not parse: writing into a file we cannot read risks a duplicate key, and a deps.edn with a duplicate key does not load at all.
(patch-agents-md! dir {:keys [name docs-url]})Remove module row from available block; append to installed block.
Remove module row from available block; append to installed block.
(patch-config! dir relative-path snippet)Inject snippet into :active section of config file if config-key not present.
Inject snippet into :active section of config file if config-key not present.
(patch-deps! dir {:keys [clojars version scope]})Add clojars coordinate to deps.edn if not already present.
A module with :scope :dev goes into the :repl alias instead of :deps.
devtools is the first: it pulls a dashboard and a Jetty adapter, and putting
it in :deps would ship all of that in the uberjar. Returns :deps,
:repl-alias, :no-repl-extra-deps or :unreadable (nothing written), or
nil when the dep was already there.
Add clojars coordinate to deps.edn if not already present. A module with `:scope :dev` goes into the `:repl` alias instead of `:deps`. devtools is the first: it pulls a dashboard and a Jetty adapter, and putting it in `:deps` would ship all of that in the uberjar. Returns `:deps`, `:repl-alias`, `:no-repl-extra-deps` or `:unreadable` (nothing written), or nil when the dep was already there.
(repl-extra-deps-insertion-point content)Index just after the :extra-deps { of the :repl alias, or nil.
Scoped to the alias, which a regex is not. (?s):repl\s*\{.*?:extra-deps\s*\{
anchors on :repl and then takes the NEXT :extra-deps in the file, which need
not be inside it — with a :repl alias that has none, devtools landed in
whatever alias came next (:test in a generated project). It reported the
:repl alias while writing to :test.
Index just after the `:extra-deps {` of the `:repl` alias, or nil.
Scoped to the alias, which a regex is not. `(?s):repl\s*\{.*?:extra-deps\s*\{`
anchors on :repl and then takes the NEXT :extra-deps in the file, which need
not be inside it — with a :repl alias that has none, devtools landed in
whatever alias came next (:test in a generated project). It reported the
:repl alias while writing to :test.(wagoe-project? dir)True if dir contains a deps.edn referencing com.wagoe.
True if dir contains a deps.edn referencing com.wagoe.
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 |