Class: AvoCli::CLI::Commands::Lint

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/avo_cli/cli.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#halt, #run

Instance Method Details

#callObject



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/avo_cli/cli.rb', line 39

def call(**)
  scan = ::AvoCli::Scanner.scan

  say "Scan finished!\n"

  if scan.errors?
    yell "We found a couple of errors."
    ap scan.error_messages
  else
    say "Nothing bad found. Good job!"
  end
end