mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Add helper to get apm path
This commit is contained in:
@@ -36,6 +36,10 @@ class PackageManager
|
||||
@packageActivators = []
|
||||
@registerPackageActivator(this, ['atom', 'textmate'])
|
||||
|
||||
# Public: Get the path to the apm command
|
||||
getApmPath: ->
|
||||
@apmPath ?= require.resolve('atom-package-manager/bin/apm')
|
||||
|
||||
getPackageState: (name) ->
|
||||
@packageStates[name]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user