Sha256: 551d57b95dc1cfe84ac23a736833aed668ecd0da7e287dc8881ab23f91687483

Contents?: true

Size: 726 Bytes

Versions: 1

Compression:

Stored size: 726 Bytes

Contents

class GraphCommand < 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'
  option ["--include"], "INCLUDE", "Regexp of classes that will be shown on graph"

  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)
    analyzer = Depcheck::Analyzer.new
    results = analyzer.generate_dependencies(swiftdeps)
    output = Depcheck::GraphOutput.new
    output.post(results, include)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
depcheck-0.4.0 lib/depcheck/command/graph_command.rb