To invoke the Command Palette command from code, you can use atom.workspaceView.triggerand specify the command name as a string. For instance:
atom.workspaceView.command 'custom:runner', ->
editor = atom.workspace.getActiveEditor()
editor.save()
atom.workspaceView.trigger 'runner:run'
custom:runner, Atom , Atom init.coffee. " " ( - , ), my-entry:runner.