Add an 'application:open-license' command

It just opens the LICENSE file in a buffer
This commit is contained in:
Nathan Sobo
2014-02-21 13:08:26 -07:00
parent 4700eeb7e2
commit 0eaf3b6336
3 changed files with 10 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
{remove, last} = require 'underscore-plus'
{join} = require 'path'
{Model} = require 'theorist'
Q = require 'q'
Serializable = require 'serializable'
@@ -88,6 +89,9 @@ class Workspace extends Model
@openUriInPane(uri, pane, options)
openLicense: ->
@open(join(atom.getLoadSettings().resourcePath, 'LICENSE'))
# Only used in specs
openSync: (uri='', options={}) ->
{initialLine} = options