Class: Preek::CLI
- Inherits:
-
Thor
- Object
- Thor
- Preek::CLI
- Extended by:
- DefaultCommand
- Includes:
- Thor::Actions
- Defined in:
- lib/preek/cli.rb
Overview
whoop whoop
Instance Method Summary collapse
Methods included from DefaultCommand
Instance Method Details
#git ⇒ Object
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 |
#version ⇒ Object
13 14 15 |
# File 'lib/preek/cli.rb', line 13 def version(*) say VERSION end |