Commands.executeCommand method
Commands › executeCommand
Unofficial
Execute a command by reference.Signature:
executeCommand(command: Command, event?: Event | undefined): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| command | Command | {@link obsidian#Command} to execute. |
| event? | Event | undefined | *(Optional)* |
Returns: boolean — Whether the command was successfully executed.