Class: Preek::CLI

Inherits:
Thor
  • Object
show all
Extended by:
DefaultCommand
Includes:
Thor::Actions
Defined in:
lib/preek/cli.rb

Overview

whoop whoop

Instance Method Summary collapse

Methods included from DefaultCommand

dispatch

Instance Method Details

#gitObject



40
41
42
43
# File 'lib/preek/cli.rb', line 40

def git
  args = git_status.scan(/[ M?]{2} (.*\.rb)/).flatten
  smell *args unless args.empty?
end

#smell(*files) ⇒ Object



35
36
37
# File 'lib/preek/cli.rb', line 35

def smell(*files)
  Examiner.new(files, excludes, reporter: reporter, output: output).perform
end

#versionObject



13
14
15
# File 'lib/preek/cli.rb', line 13

def version(*)
  say VERSION
end