extensibility via services

This commit is contained in:
Loic Nageleisen 2015-02-23 14:59:33 +01:00
parent d2bf0c5502
commit 4f2e9d6fd7
5 changed files with 30 additions and 2 deletions

View file

@ -1,6 +1,12 @@
path = require 'path'
class Ex
@singleton: =>
@ex ||= new Ex
@registerCommand: (name, func) =>
@singleton()[name] = func
quit: ->
atom.workspace.getActivePane().destroyActiveItem()