Class: FindT::CLI

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

Instance Method Summary collapse

Constructor Details

#initialize(args, root_path, isatty) ⇒ CLI

Returns a new instance of CLI.



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/find_t/cli.rb', line 9

def initialize(args, root_path, isatty)
  @root_path = root_path

  parse_options! args

  @scanner = Scanner.new(
    root_path: @root_path,
    rails:     @options['rails'],
  )
  @printer = Printer.new @root_path, isatty

  run
end