Skip to content

obsidian/command-handlers/command-handler

Base class and interfaces for command handlers.

ClassDescription
CommandHandlerBase class for command handlers. Unlike the Obsidian Command interface, handlers are never mutated by Obsidian. The buildCommand method produces a plain Command object for registration.
InterfaceDescription
CommandHandlerConstructorParamsParameters for creating a command handler.
CommandHandlerRegistrationContextContext provided to command handlers during registration.