Liking cljdoc? Tell your friends :D

boundary.devtools.core.introspection

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.
raw docstring

filter-routesclj

(filter-routes routes filter-key)

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
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
sourceraw docstring

format-config-treeclj

(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.
sourceraw docstring

format-module-summaryclj

(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.
sourceraw docstring

format-route-tableclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close