1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

30 commits

Author SHA1 Message Date
Rob Gleeson
5cbfff74f8 Call super(…) in subclass of Pry::Command. 2012-01-07 04:27:39 +00:00
Rob Gleeson
a6a8acd3da Rewrite 'edit-command'.
You no longer need to provide a variable that references a CommandSet…
Instead, you can provide just the command name.

The only cavaet is that the file defining the command you're editing
must return the CommandSet it is being written within.

You can also rewrite commands temporarily (in-memory) with the -p
switch.
2012-01-07 04:09:57 +00:00
Ryan Fitzgerald
a53fe2c5d1 use exceptions to handle command errors 2011-10-01 16:57:39 -07:00
Ryan Fitzgerald
501fd1a23f factor out method boilerplate 2011-09-24 23:57:13 -07:00
Ryan Fitzgerald
6133f4a831 method -> meth 2011-09-24 22:13:01 -07:00
Ryan Fitzgerald
7c43bcfe58 update commands and tests to use Pry::Method 2011-09-22 01:20:32 -07:00
John Mair
fb47d61215 removed Pry.active_instance from commands and replaced with _pry_ method 2011-08-16 16:21:52 +12:00
John Mair
f25542a8af improved error checking for edit-command and reload-command 2011-08-07 08:14:11 +12:00
John Mair
9708367342 added edit-command and reload-command commands to user_command_api.rb set 2011-08-02 08:30:13 +11:00
John Mair
600516ee5f removed git-related stuff from experimental commandset 2011-07-25 01:14:42 +12:00
John Mair
7386692030 added git add to experimental command set, lets you add a method to a git repo 2011-07-14 04:25:34 +12:00
John Mair
64c9751a9e improved method diffs so that the method in HEAD is located first using a search through the file 2011-06-24 00:23:02 +12:00
John Mair
3b04f4b582 added diff command to Experimental command set (temporary home, will remove soon to pry-git plugin) 2011-06-20 20:31:24 +12:00
John Mair
70ddb05e94 forgot to require grit, silly 2011-06-18 06:15:47 +12:00
John Mair
2bc0e3b2ee added blame command to Experimental 2011-06-18 06:03:01 +12:00
John Mair
83f3d3cfef improved documentation for define-command in user_command_api.rb 2011-06-17 01:50:19 +12:00
John Mair
4a0329a032 fixed spacing on experimental.rb 2011-06-17 01:47:18 +12:00
John Mair
015d77bfa6 moved play commands from Experimental to Input command set 2011-06-13 01:07:31 +12:00
John Mair
5effe7a6e8 more work on play command, now works with no options 2011-06-10 22:38:40 +12:00
John Mair
52dc6d1b2d play command almost complete 2011-06-10 02:18:24 +12:00
John Mair
774e19c394 experimental command 'play' 2011-05-31 00:07:15 +12:00
John Mair
ef6eeb06b4 removed all instances of old opts[:arg_string] 2011-05-30 15:57:06 +12:00
John Mair
887251b247 added reload-method experimental command, removed rue- experimental command, in experimental.rb 2011-05-30 03:47:49 +12:00
John Mair
1f3f6c6450 implemented system commands as regex command (in shell.rb), removed all traces of old system command code 2011-05-29 03:41:15 +12:00
John Mair
40295ac979 show-command now uses :listing name and can look up dynamically defined commands. Beginning to swap system commands over from special case treatment to new regex command replacement 2011-05-28 04:20:00 +12:00
John Mair
8d63a4016a renamed show-eval to show-input and added line numbers and syntax highlighting to output, also made rue-N command's output prettier 2011-05-25 02:38:20 +12:00
John Mair
ecc3859866 added experiment rue-(\d) and :(.*) regex commands 2011-05-23 19:24:00 +12:00
Rob Gleeson
7051c12730 Quash (most) warnings emitted by -w.
Two remain:

- two from method_source gem.
2011-05-19 19:07:40 +01:00
John Mair
746df39015 added a few more commands to 'experimental' command set 2011-05-19 15:31:29 +12:00
John Mair
a6b129c5c9 added plugin system. Added extended_commands direc and ExtendedCommands with UserCommandAPI and Experimental command sets, experimental commands include: show-eval and play-string 2011-05-16 05:31:07 +12:00