 uuid = require 'uuid'
 request = require 'request'
 _ = require 'underscore'
+
+ProgressView = require '../utils/progress-view'
 
 Q = require 'q'
 {github, gogs, gogsApi} = require '../utils/gitApi'

      alert("#{error}")
    .finally ->
      console.log "publish package finally."

  gitCreatePackage: ->
    GitCreatePackageWizardView = require './gitCreatePackage-wizard-view'
    gitCreatePackageWizardView = new GitCreatePackageWizardView().attach()
    
    pv = new ProgressView("Create git package...")

    info = null
    gitCreatePackageWizardView.finishPromise()
    .then (options) ->
      gitCreatePackageWizardView.destroy()
      pv.attach()

      selectPath = atom.packages.getActivePackage('tree-view').mainModule.treeView.selectedPath
      if require('fs').statSync(selectPath).isFile()
