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
    s.interactive_mode(pry_instance)
  end
  Pry::Commands.command(
    "load-file", "Load another file through the repl"
  ) do |file_name|
    s.non_interactive_mode(pry_instance, File.read(File.expand_path(file_name)))
  end
end