This is simpler and more transparent. Also added to this commit is `show-input` now invoked immediately after a `play -m meth --open` (this was only possible because of the eval_string change). Tests for `play` method also updated to reflect changes.
Feature/edit command (Issue #254)
This happens particularly in testing where you want to delete files after each test, but the REPL state isn't reset correctly.
Useful when pry instance is passed to procs such as exception handlers e.g Pry.config.exception_handler = proc |output, value, _pry_| _pry_.run_command('cat --ex') end Notw that run_command also accepts a optional second parameter 'binding' that defaults to binding_stack.last when not given
This enables `cat --ex` to now return code for REPL generated exceptions
…e, false as well. Also truncted #<> syntax to exclude memory address to improve appearance of prompts
…tput, defaults to 2 spaces
* accurate spacing in front of the replacement line when there's no line number * remove legacy "amend-line-N" syntax
…bols, added tests for this. Also added new CLIPPED_PRINT printer (using Pry.view_clip), perhaps useful for enormous objects)
… around nest_level in DEFAULT_PROMPT
1. Pry.view_clip no longer uses #inspect, it defaults to #<> syntax (but using Module#name for modules), exception for 'main' object 2. Pry.run_command passes in a blank prompt and blank hooks Also updated tests
…_color = :red.