Class: Uncov::CLI

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

Overview

provide terminal interface for uncov

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/uncov/cli.rb', line 7

def self.start(args)
  Uncov.configure(args)
  report = Uncov::Report.generate
  Uncov::Formatter.output(report)
  !report.trigger?
rescue StandardError => e
  raise if Uncov.configuration.debug

  warn e.message
  nil
end