Skip to content

Commands.executeCommand method

Commands › executeCommand

Unofficial

Execute a command by reference.

Signature:

executeCommand(command: Command, event?: Event | undefined): boolean

Parameters:

Parameter Type Description
command Command {@link obsidian#Command} to execute.
event? Event | undefined *(Optional)*

Returns: booleanWhether the command was successfully executed.