Commands
Making a command
function handleShowMessage() {
window.alert('Hello, world!')
}app.commands.register('helloworld:show-message', handleShowMessage, 'Show Message')Calling a command
app.commands.execute('helloworld:show-message')var ids = Object.keys(app.commands.commands)
console.log(ids); // you can see all available command IDs
app.commands.execute('project:open') // execute `project:open` command