John Mair
a8dd7ec668
updated CHANGELOG and removed leak of debugging info from cd command
2011-09-06 04:25:40 +12:00
John Mair
253add814b
Added support for complex syntax to the `cd` command, e.g: cd ../@x/y../z. Updated tests.
...
cd @x/@y/@z will push @x and @y and @z onto the stack in that order
cd ../../ will pop @z and @y off the stack
2011-09-06 04:12:53 +12:00
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
a381a9f11e
changed behaviour of cd command so no args is equivalent to cd / (rather than a no-op)
2011-09-03 22:37:46 +12:00
John Mair
d16e396e51
removed all occurences of Pry.active_instance and Pry.last_exception. Now using inject_local() method. Also initializing all locals in repl_prologue
2011-08-31 05:35:41 +12:00
John Mair
662a75ff45
exit-program now accepts exit status code (also added tests)
2011-08-30 03:22:10 +12:00
John Mair
e8b54c9a23
reverted behaviour of exit and friends back to 1.9.3 behaviour (to prevent surprising users) also updated tests to reflect this
2011-08-25 23:37:23 +12:00
John Mair
d8562e666e
cleaned up and added error checking for quit, switch-to and cd commands in context.rb
2011-08-22 20:56:18 +12:00
John Mair
b2acfdc7c1
updated all commands for new binding_stack approach, also added new switch-to command which lets you use bindings further up the stack. Changed behaviour of exit command to now call Kernel#exit
2011-08-22 14:48:50 +12:00
John Mair
09774a034a
migrated to a binding_stack approach from nested instances
2011-08-21 18:22:45 +12:00
Conrad Irwin
ec3b22ede5
Move Pry#save_history to Pry.save_history.
...
This is for consistency with Pry.load_history
2011-08-13 12:46:18 +12:00
John Mair
3c7a1c2eca
save before computer crash
2011-06-11 22:44:30 +12:00
John Mair
3d14ef6368
migrating some commands from opts[:arg_string] to arg_string method
2011-05-30 03:47:49 +12:00
John Mair
69ebdde4c1
added support for 'cd ::' which enters TOPLEVEL_BINDING scope
2011-05-08 18:22:08 +12:00
Rob Gleeson
5a85ea04d9
Merge branch 'dev' of github.com:banister/pry into dev
2011-05-07 16:04:17 +01:00
Rob Gleeson
a13f71cab5
Sync commands with new API.
2011-05-07 16:03:26 +01:00
Mon ouïe
1750fe4d78
Got rid of CommandSet#name
2011-05-07 07:32:05 +02:00
John Mair
79868f8266
fixed cd bug for complex arguments, renamed test_commandset to test_command_set
2011-05-06 22:43:08 +12:00
John Mair
797b636f35
first start at reorganization and classification of commands
2011-05-01 22:25:37 +12:00