Method: CollinsShell::Console.launch

Defined in:
lib/collins_shell/console.rb

.launch(options) ⇒ Object



49
50
51
52
53
54
55
56
57
58
# File 'lib/collins_shell/console.rb', line 49

def launch(options)
  self.options = options
  Pry.config.commands = get_pry_commands
  Pry.config.pager = true
  Pry.custom_completions = get_pry_custom_completions
  Pry.config.exception_handler = get_pry_exception_handler
  target = CollinsShell::Console::Filesystem.new options
  setup_pry_hooks
  Pry.start(target, :prompt => get_pry_prompt)
end