lib/irt/commands/help.rb in irt-1.2.0.p01 vs lib/irt/commands/help.rb in irt-1.2.0.p02

- old
+ new

@@ -3,20 +3,20 @@ module Help def irt_help ensure_session puts %( -#{label " NOTICE ", :log_color} +#{label " Irt Help ", :log_color} - The #{IRT.dye "Commands", :interactive_color, :bold} are methods generally available in any IRT session - The #{IRT.dye "Directives", :file_color, :bold} are methods available in any file but not in IRT sessions - The #{IRT.dye "Extensions", :log_color, :bold} are methods available anywhere #{label " Inspecting Commands ", :interactive_color} irt object Opens an inspecting session into object vdiff|vd obj_a, obj_b Prints the visual diff of the yaml dump of 2 objects - cat args Similar to system cat - ls args Similar to system ls + p, pp, ap, y When invoked with no arguments print the last_value + (e.g. just type 'y' instead 'y _') #{label " Log Commands ", :interactive_color} log|l [limit] Prints limit or 'tail_size' lines of the virtual log full_log|ll Prints all the lines in the virtual log print_lines|pl Prints the last lines of the current session @@ -48,20 +48,16 @@ add_desc|dd desc Adds a description for the test in the log add_test|tt Adds a test in the log, checking the last value (_) by automatically choosing the :_eql?, or :_yaml_eql? method, depending on the type of the last value (_) add_test|tt desc Like add_test but adds a 'desc' directive first' - save_as|sa path Saves the current irt file as path and runs it + save_as|sa path Saves the current irt file as path #{label " FileUtils Commands ", :interactive_color} All the FileUtils methods are availabe as IRT Commands (e.g. pwd, touch, mkdir, mv, cp, rm, rm_rf, compare_files, ...) -#{label " Enhanced Commands ", :interactive_color} - p, pp, ap, y When invoked with no arguments print the last_value - (e.g. just type 'y' instead 'y _') - #{label " Documentation Commands ", :interactive_color} ri to_search Search the ri doc for to_search (no quotes needed) ri obj.any_method Search the method.owner ri doc for of any_method (no quotes needed, and completion available) e.g.: ri "".eql? #=> ri doc for String#eql? @@ -80,10 +76,10 @@ xx|qq Aliases for abort (abort the irt process) status|ss Prints the session status line run file Run an irt file (exiting from the current sessions) rerun|rr Reruns the current irt file (exiting from the current sessions) - restart|r! Restart the executable, reload IRT (and Rails) and + restart|rs Restart the executable, reload IRT (and Rails) and rerun the current file irt_help|hh Shows this screen sh command Alias for system("command") (no quotes needed) #{label " Session Directives ", :file_color}