Method: Transpec::CLI#run

Defined in:
lib/transpec/cli.rb

#run(args) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/transpec/cli.rb', line 28

def run(args)
  begin
    paths = OptionParser.new(@configuration).parse(args)
    fail_if_should_not_continue!
  rescue => error
    warn error.message
    return false
  end

  process(paths)

  display_summary
  generate_commit_message
  display_final_guide

  true
end