An addon's Surface: the tools and contributed commands a caller can reach it through. Pure. A dormant addon is advertised from its surface, so a surface must be known without mounting.
Portable stratum: no reader conditionals, no for.
An addon's Surface: the tools and contributed commands a caller can reach it through. Pure. A dormant addon is advertised from its surface, so a surface must be known without mounting. Portable stratum: no reader conditionals, no `for`.
(blank? surface)True when SURFACE advertises nothing.
True when SURFACE advertises nothing.
(declared spec)The manifest-declared surface of SPEC, normalized, or nil when absent, malformed, or empty.
The manifest-declared surface of SPEC, normalized, or nil when absent, malformed, or empty.
(normalize surface)SURFACE with both keys present, tool-defs stripped, command names distinct and sorted, empty command lists dropped.
SURFACE with both keys present, tool-defs stripped, command names distinct and sorted, empty command lists dropped.
(observed addon-id tools contributions)The surface ADDON-ID shows while mounted: TOOLS it returns, plus every command in CONTRIBUTIONS ({tool-name {command-name {:addon id ...}}}) tagged with it.
The surface ADDON-ID shows while mounted: TOOLS it returns, plus every command
in CONTRIBUTIONS ({tool-name {command-name {:addon id ...}}}) tagged with it.(resolve-surface spec learned)[surface source] for SPEC given the LEARNED surface (or nil). Declared wins.
[surface source] for SPEC given the LEARNED surface (or nil). Declared wins.
(tool-decl tool-def)TOOL-DEF as advertisable data: no handler, nothing that cannot cross a wire.
TOOL-DEF as advertisable data: no handler, nothing that cannot cross a wire.
(well-formed? s)True when S has the Surface shape normalize can read.
True when S has the Surface shape normalize can read.
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 |