Method: Querly::CLI#find
- Defined in:
- lib/querly/cli.rb
#find(pattern, *paths) ⇒ Object
93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/querly/cli.rb', line 93 def find(pattern, *paths) require 'querly/cli/find' config = config_path.file? ? config(root_option: nil) : nil threads = Integer([:threads]) Find.new( pattern: pattern, paths: paths.empty? ? [Pathname.pwd] : paths.map {|path| Pathname(path) }, config: config, threads: threads ).start end |