Class: UsageCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- UsageCommand
- Defined in:
- lib/depcheck/command/usage_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/depcheck/command/usage_command.rb', line 6 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) Depcheck::SimpleOutput.post_usage(results) end |