Pure formatting functions for REPL display of routes, config, and modules. No I/O, no side effects — data in, formatted strings out.
Pure formatting functions for REPL display of routes, config, and modules. No I/O, no side effects — data in, formatted strings out.
(filter-routes routes filter-key)Filter a seq of route maps.
Filter a seq of route maps. - keyword -> filter by :module field matching (name filter-key) - string -> filter by substring match on :path - otherwise return routes unchanged
(format-config-tree config)(format-config-tree config section)Format an Integrant config map as an indented tree with secrets redacted.
When section keyword is provided, drill into matching keys only.
Format an Integrant config map as an indented tree with secrets redacted. When `section` keyword is provided, drill into matching keys only.
(format-module-summary modules)Format a seq of module maps as a summary table. Each module: {:name "user" :components 5}. Name column width adapts to longest name.
Format a seq of module maps as a summary table.
Each module: {:name "user" :components 5}.
Name column width adapts to longest name.(format-route-table routes)Format a seq of route maps as an aligned table with METHOD, PATH, HANDLER columns. Each route: {:method :get :path "/api/users" :handler "boundary.user.shell.http/list-users" :module "user"}. Handler column shows just the last dot-segment (e.g. "http/list-users"). Returns "No routes found." for empty or nil input.
Format a seq of route maps as an aligned table with METHOD, PATH, HANDLER columns.
Each route: {:method :get :path "/api/users" :handler "boundary.user.shell.http/list-users" :module "user"}.
Handler column shows just the last dot-segment (e.g. "http/list-users").
Returns "No routes found." for empty or nil input.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 |