Commit Graph

15 Commits

Author SHA1 Message Date
Mon ouïe cac7ca89d3 Merge branch 'master' into refactor/command-set
Conflicts:
	lib/pry/command_helpers.rb
2011-04-25 19:51:07 +02:00
John Mair 4fc757ece1 extracted is_a_dynamically_defined_method? from check_for_dynamically_defined_method 2011-04-26 03:19:55 +12:00
Mon ouïe 0ecfe74ee4 Added CommandContext and made commands be run using it.
Cleaning commands and helpers up as well as fixing tests is still to be done.
2011-04-25 13:26:25 +02:00
Lee Jarvis 3ff75dd20a whitespace cleanup in one hit 2011-04-18 22:31:39 +01:00
epitron 7a9df1af2b Improved 'require' command, added color helpers to command_base_helpers 2011-04-18 15:11:46 -04:00
epitron 9153fb2f3b New 'require' command, which 'require's gems, and lets the user install them if they're missing. 2011-04-18 14:41:11 -04:00
John Mair b5e9428dd1 including sourcefile now in output for ruby core code/docs. Modified command_helpers.rb 2011-04-18 16:43:19 +12:00
John Mair 265d0928aa Added comments to command_processor.rb, added bold text to output from
`stat` command.
2011-04-13 21:16:38 +12:00
John Mair 580e1ce1ec added new `stat` command to read basic show basic method
information. Refactored command_helpers.rb and
command_base_helpers.rb, moving some methods up into
command_base_helpers. `ls` command now uses a pager. Some headings
made 'bold'
2011-04-13 17:16:12 +12:00
John Mair b07af59cae added gist-method & ri commands. Aliased $ to show-method
* fixed _dir_ bug (was just equal to _file_)
* Major refactor of show-doc and show-method commands
* making start on optional/installable commands
2011-04-13 01:19:11 +12:00
John Mair 4194036811 refactored commands_helper.rb and commands.rb slightly. Renamed
file-mode command to `shell-mode`.
2011-04-12 03:01:33 +12:00
John Mair 6a25c1fe42 converted stagger_output() to always use lesspipe unless exception is
raised; when exception to use simple_pager. This should ensure windows
uers who have `less` can use it.
2011-04-12 02:16:54 +12:00
John Mair fcb014b94a verson 0.8.0pre7, added number of lines to all headers (make_header in command_helpers.rb) 2011-04-12 01:43:19 +12:00
John Mair 97534b3434 Now using lesspipe by default for paging long text output on unix. Use
-f to turn off (flood option)

* Still using simpler_pager on windows
* made all CommandHelper methods private
* fixed negative line numbers bug
2011-04-12 01:06:14 +12:00
John Mair dbe7733967 refactored commands.rb, converting lambdas to methods and putting into
command_helpers.rb.

Also changed run_command in pry_class.rb to use #dup instead of #clone, but in
YARV? (worked fine in MRI)
2011-04-11 03:36:54 +12:00