Class: AxR::CLI

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

Instance Method Summary collapse

Instance Method Details

#check(pattern = nil) ⇒ Object



15
16
17
18
19
# File 'lib/axr/cli.rb', line 15

def check(pattern = nil)
  $LOAD_PATH << Dir.pwd
  require options['load'] if options['load']
  AxR::Runner.new(pattern, exit_on_warnings: !options['exit-on-warnings'].nil?).invoke
end