 _ = require 'underscore-plus'
 CSON = require 'season'
 yargs = require 'yargs'
-Git = require 'git-utils'
 
 Command = require './command'
 fs = require './fs'

        try
          manifest = CSON.readFileSync(manifestPath)
      manifest ?= {}
      try
        if directoryPath is @gitPackagesDirectory
          repo = Git.open(path.join(directoryPath, child))
          manifest.sha = repo.getReferenceTarget(repo.getHead()).substr(0, 7)
      manifest.name = child
      if options.argv.themes
        packages.push(manifest) if manifest.theme


  listUserPackages: (options, callback) ->
    userPackages = @listPackages(@userPackagesDirectory, options)
      .filter (pack) -> not pack.apmInstallSource
    unless options.argv.bare or options.argv.json
      console.log "Community Packages (#{userPackages.length})".cyan, "#{@userPackagesDirectory}"
    callback?(null, userPackages)

  listDevPackages: (options, callback) ->
