lib/coderunner/interactive_methods.rb in coderunner-0.15.0 vs lib/coderunner/interactive_methods.rb in coderunner-0.15.1
- old
+ new
@@ -22,9 +22,16 @@
puts Dir.pwd
end
def runs
CodeRunner.runner.run_list
end
+ # Change the default root folder(s) for commands. If a runner
+ # has not been loaded for a given folder, it will be loaded
+ # as subsequently required.
+ def change_root_folder(folder)
+ DEFAULT_COMMAND_OPTIONS[:Y] = folder
+ end
+ alias :crf :change_root_folder