Method: Fast::Cli#search

Defined in:
lib/fast/cli.rb

#searchObject

Search for each file independent. If -d (debug option) is enabled, it will output details of each search. If capture option is enabled it will only print the captures, otherwise it prints all the results.



225
226
227
228
229
230
231
232
233
234
# File 'lib/fast/cli.rb', line 225

def search
  return Fast.debug(&method(:execute_search)) if debug_mode?

  execute_search do |file, results|
    results.each do |result|
      binding.pry if @pry # rubocop:disable Lint/Debugger
      report(file, result)
    end
  end
end