command-handlers/command-handler
Base class and interfaces for command handlers.
Classes
Section titled “Classes”| Class | Description |
|---|---|
| CommandHandler | Base 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. |
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| CommandHandlerConstructorParams | Parameters for creating a command handler. |
| CommandHandlerRegistrationContext | Context provided to command handlers during registration. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| isMethodOverridden | Whether an instance overrides a method its base class declares. |
| Type | Description |
|---|---|
| CommandSwitchesProvider | Resolves the user’s command switches at the moment a menu is built. |