Class: WindClutter::CLI::Commands::Analysis::FilePath

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
WindClutter, Util
Defined in:
lib/windclutter/cli/commands/analysis.rb

Overview

Initiate setup for specified project

Constant Summary

Constants included from WindClutter

VERSION

Instance Method Summary collapse

Instance Method Details

#call(file:) ⇒ Object



24
25
26
27
28
29
30
31
32
# File 'lib/windclutter/cli/commands/analysis.rb', line 24

def call(file:, **)
  return puts "No file found #{file}".red unless File.file?(file)

  puts "Analysing #{file}...".yellow

  content = File.open(FileHandler.scan_one(file))
  puts 'Done!'.green
  ap Analyser.init(content.read)
end