       # actual initialization after atom has loaded
       GitHubApi ?= require 'github'
       PackageManager ?= require './package-manager'
+
       atom.commands.add 'atom-workspace', "sync-settings:backup", => @backup()
       atom.commands.add 'atom-workspace', "sync-settings:restore", => @restore()
       atom.commands.add 'atom-workspace', "sync-settings:view-backup", => @viewBackup()
+
       @checkForUpdate()
 
   deactivate: ->

            @notifyNewerBackup()

          cb?()
      , 0
    else
      @notifyMissingGistId()

  notifyNewerBackup: ->
    # TODO: create a link to restore command with something like custom uri
    atom.notifications.addInfo "sync-settings: Your settings are out of date."

  notifyMissingGistId: ->
    # TODO: add link to open package settings if possible

[GitHubApi, PackageManager] = []

# constants
syncUri = 'sync-settings:/'

DESCRIPTION = 'Atom configuration storage operated by http://atom.io/packages/sync-settings'
REMOVE_KEYS = ["sync-settings"]

SyncSettings =
  config: require('./config.coffee')

  activate: ->
