Class: Grepfruit::Commands::Search
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Grepfruit::Commands::Search
- Defined in:
- lib/grepfruit/cli.rb
Instance Method Summary collapse
Instance Method Details
#call(path: ".", **options) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/grepfruit/cli.rb', line 20 def call(path: ".", **) () Grepfruit::Search.new( dir: path, regex: create_regex([:regex]), exclude: [:exclude] || [], include: [:include] || [], truncate: [:truncate]&.to_i, search_hidden: [:search_hidden], jobs: [:jobs]&.to_i, json_output: [:json] ).run end |