Method: Modelist::CLI#search
- Defined in:
- lib/modelist/cli.rb
#search(*args) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/modelist/cli.rb', line 37 def search(*args) # load Rails environment require './config/environment' require 'modelist/searcher' args.each {|a| puts "Unsupported option: #{args.delete(a)}" if a.to_s.starts_with?('-')} exit ::Modelist::Searcher.find_all(*args) ? 0 : 1 end |