Class: Preek::CLI

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

Overview

whoop whoop

Instance Method Summary collapse

Instance Method Details

#smell(*args) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/preek/cli.rb', line 23

def smell(*args)
  args ||= @args
  @includes = options.keys.map {|key| _aliases[key.to_sym] }
  @files, @not_files = args.partition { |file| File.exists? file }
  report_smells
  report_not_files
end

#versionObject



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

def version(*)
  say VERSION
end