Sha256: 9dabf31bddbe30337ba1ce56ff86a256e6bd6185fd9181d5cfe2dd865b2807a7

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

class AnalyzeCommand < Clamp::Command
  option ['--project'], 'PROJECT', 'Path to the xcodeproj'
  option ['--scheme'], 'SCHEME', 'The scheme that the project was built in'
  option ['--workspace'], 'WORKSPACE', 'Path to the workspace'

  def execute

    unless project || (workspace && scheme)
      raise StandardError, 'Must provide project path or workspace path with scheme.'
    end

    swiftdeps = Depcheck::Finder.find_swiftdeps(project, workspace, scheme)
    results = Depcheck::Analyzer.generate_dependencies(swiftdeps)
    Depcheck::SimpleOutput.post(results)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
depcheck-0.1.0 lib/depcheck/command/analyze_command.rb