Commit Graph

8 Commits

Author SHA1 Message Date
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