…rn to pry toplevel, improved `pry` command line so it uses a rep session on -e code
…7. Improved Pry.run_command error message
…and eval-file commands, fixed up ordering issue for options in pry command line
…red pry.rb to include all *.rb using Dir and each
* Added Pry.run_command for running Pry commands outside of a session. * Added more graceful error messages when trying to show-method on dynamically defined methods. * Added tests for new Pry.run_command method * Updated README with info on Pry.run_command
…) rather than relying on existence of 'quit' command.
* Use clipped version of Pry.view() for large objects * Exit Pry session on ^d * Use Shellwords for breaking up parameters to pry commands * Use OptionParser to parse options for default pry commands * Add version command * Refactor 'status' command: add current method info * Add meth_name_from_binding utility lambda to commands.rb * Add -M, -m, -v(erbose), -a(ll), -s(uper), -l(ocals), -i(ivars), -k(klass vars), etc options to ls * add -M(instance method) options to show-method and show-doc * add --help option to most commands * Get rid of ls_method and ls_imethods (subsumed by more powerful ls) * Get rid of show_idoc and show_imethod * Add special eval-file command that evals target file in current context
… new changes, updated README.
…ow-doc with special -M option. Changed all underscored command names to hyphenated-names, e.g jump-to instead of jump_to. * added a bunch of new command options to ls command, supercharging it. Using optparse. * added options to show-method and show-doc * now showing file/line for show-method, show-doc, show-command commands * cleaned up 'help', and got rid of aliases from help display; now showing aliases in primary command help output.
… if #inspect returns a string of size > 60 chars. This should make it more workable when prying on enormous objects. Other changes: shellwords, new commands, some command modifications etc * Now using Shellwords to split input string into args to pass to action proc * added version command, to show pry version * added Pry.view_clip(), clips large #inspect to #<> notation * added inspect alias for cat * added current method info to status command * added ruby/pry version info to status command
…it working in combination with -c, e.g ls -gc. Changed documentation for !
…n task from Rakefile, and replaced it with a version task
…nstants in var listing