Commit Graph

19 Commits

Author SHA1 Message Date
John Mair a04e56012a made it so commands (with :keep_retval => true) can now return nil as a legitimate return value. Created a new 'void' value to use instead when indicating no return value. also updated tests.
'void' method now available to commands, commands must return this when they do not want their result displayed when they use :keep_retval => true. void just maps to a random object Pry::CommandContext::VOID_VALUE.
2011-09-04 13:30:20 +12: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 6ac4cbda4e added some documentation to command_context run method 2011-07-27 23:06:09 +12:00
John Mair 62f0b95812 fixed CommandContext#run for ALL commands, including regex. Using CommandProcessor approach 2011-05-30 03:47:48 +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 2f3ab643ab turned opts[:captures], opts[:eval_string] and opts[:arg_string] into captures, eval_string and arg_string methods respectively, for ease of use 2011-05-28 04:16:09 +12:00
Rob Gleeson 69f2d31bd0 The ivar assignment is not necessary. 2011-05-08 18:38:14 +01:00
Rob Gleeson bec54ce65c Pry::CommandContext#text points to Pry::Helpers::Text. 2011-05-07 15:20:28 +01:00
Rob Gleeson c49f9e3aba Extend an instance of Object instead of creating a new class … 2011-05-06 18:33:28 +01:00
Rob Gleeson 1ee8af8040 Pry::Helpers::Color => Pry::Helpers::Text. 2011-05-06 18:30:37 +01:00
Rob Gleeson 26d584b55b Add Pry::CommandContext#text 2011-05-06 18:28:12 +01:00
Rob Gleeson b54d907767 Add Pry::Helpers::Color. 2011-05-06 16:29:41 +01:00
Mon ouïe 1082ad7823 Allowed command name to be more than one word (hapenning sometimes, when using
edit-method)
2011-04-29 18:17:49 +02:00
Mon ouïe b8cd918983 Now using command processor to run system commands 2011-04-29 18:14:48 +02:00
Mon ouïe 94b7ad593e Allowed #run to run shell commands 2011-04-26 23:44:49 +02:00
Mon ouïe b14be6c0c4 Added CommandContext#run 2011-04-25 23:13:36 +02:00
Mon ouïe b0f8b72da0 Moved helpers to their own namespaces, got rid of CommandBase 2011-04-25 22:58:06 +02:00
Mon ouïe 47fcdd17b1 Added a commands attribute to command contexts 2011-04-25 18:57:02 +02: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