wagoe upgrade: rewrite what a release deprecated, driven by upgrades.edn.
rewrite-clj edits the parsed text, so formatting and comments survive.
`wagoe upgrade`: rewrite what a release deprecated, driven by upgrades.edn. rewrite-clj edits the parsed text, so formatting and comments survive.
(config-notices table text path)A notice for each deprecated config value set only through an Aero tag, such
as #keyword #env JOBS_PROVIDER: there is no literal to rewrite, and the
value the environment supplies may still be an old name.
A notice for each deprecated config value set only through an Aero tag, such as `#keyword #env JOBS_PROVIDER`: there is no literal to rewrite, and the value the environment supplies may still be an old name.
(key-loc loc k)Location of key k in the map at loc, or nil.
Location of key `k` in the map at `loc`, or nil.
(plan dir table)What table would change under project dir:
{:changes [{:path :file :old :new}] :notices [...]}.
What `table` would change under project `dir`:
{:changes [{:path :file :old :new}] :notices [...]}.(rewrite-config table text)text of a config.edn with every config rewrite in table applied.
`text` of a config.edn with every config rewrite in `table` applied.
(rewrite-source table text path){:text :notices} — text of a .clj(c) file with the ns and fn renames in
table applied. path only labels the notices.
{:text :notices} — `text` of a .clj(c) file with the ns and fn renames in
`table` applied. `path` only labels the notices.(run dir table apply?)Plans and prints the upgrade of dir; writes the files when apply?.
Returns the plan.
Plans and prints the upgrade of `dir`; writes the files when `apply?`. Returns the plan.
(table-problems table)Why each entry of table is malformed, as strings. Empty when it is fine.
Why each entry of `table` is malformed, as strings. Empty when it is fine.
(unified-diff path old new)old → new as a unified diff with three lines of context.
`old` → `new` as a unified diff with three lines of context.
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 |