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

  gitCreatePackage: ->
    GitCreatePackageWizardView = require './gitCreatePackage-wizard-view'
    gitCreatePackageWizardView = new GitCreatePackageWizardView().attach()
    info = null
    gitCreatePackageWizardView.finishPromise()
    .then (options) ->
      gitCreatePackageWizardView.destroy()

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

uuid = require 'uuid'
request = require 'request'
_ = require 'underscore'

ProgressView = require '../utils/progress-view'

Q = require 'q'
{github, gogs, gogsApi} = require '../utils/gitApi'
