class Pry::REPLFileLoader

def define_additional_commands

between interactive/non-interactive modes
Define a few extra commands useful for flipping back & forth
def define_additional_commands
  s = self
  Pry::Commands.command "make-interactive", "Make the session interactive" do
    _pry_.input_stack.push _pry_.input
    s.interactive_mode(_pry_)
  end
  Pry::Commands.command "make-non-interactive", "Make the session non-interactive" do
    _pry_.input = _pry_.input_stack.pop
    s.non_interactive_mode(_pry_)
  end
  Pry::Commands.command "load-file", "Load another file through the repl" do |file_name|
    content = StringIO.new(File.read(File.expand_path(file_name)))
    _pry_.input_stack.push(_pry_.input)
    _pry_.input = content
  end
end