Command contributions to a composite tool.
An addon contributes named subcommands to a host tool, so
analysis command="lint ..." reaches the contributing addon's handler.
Each contribution records the contributing addon so shutdown can retract
everything that addon added.
Shape: {tool-name {command-name {:handler fn :params {} :description str :addon addon-id}}}
Command contributions to a composite tool.
An addon contributes named subcommands to a host tool, so
`analysis command="lint ..."` reaches the contributing addon's handler.
Each contribution records the contributing addon so shutdown can retract
everything that addon added.
Shape: {tool-name {command-name {:handler fn :params {} :description str
:addon addon-id}}}(clear!)Remove every contribution. Returns nil.
Remove every contribution. Returns nil.
(contribute! tool-name addon-id commands)Merge COMMANDS into TOOL-NAME's command tree on behalf of ADDON-ID. Returns the contributed command names.
Merge COMMANDS into TOOL-NAME's command tree on behalf of ADDON-ID. Returns the contributed command names.
(contributed-tool-names)Every tool name carrying contributions.
Every tool name carrying contributions.
(get-commands tool-name)The contributed command tree for TOOL-NAME, or nil.
The contributed command tree for TOOL-NAME, or nil.
(retract! tool-name addon-id)Remove every command ADDON-ID contributed to TOOL-NAME. Returns nil.
Remove every command ADDON-ID contributed to TOOL-NAME. Returns nil.
(retract-all! addon-id)Remove every command ADDON-ID contributed to any tool. Returns nil.
Remove every command ADDON-ID contributed to any tool. Returns nil.
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 |