1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/test/test_default_commands
Kyrylo Silin 3e56239d50 Implement cd - command
The `cd -` command allows a user to toggle between last two scopes.

Example:

  [1] pry(main)> cd :foo
  [2] pry(:foo):1> cd :bar
  [3] pry(:bar):2> cd -
           ^ save :bar and toggle
  [4] pry(:foo):1> cd 44
           ^ we are back at foo
  [5] pry(44):2> cd ..
  [6] pry(:foo):1> cd ..
  [7] pry(main)> cd -
           ^ save main and toggle
  [8] pry(:foo):1>
           ^ we are back at foo

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-19 16:43:46 +02:00
..
example.erb Fix whereami inside erb files. 2012-06-03 20:40:20 -07:00
test_cd.rb Implement cd - command 2012-06-19 16:43:46 +02:00
test_context.rb Fix whereami with tests, closes #595 2012-06-16 01:25:07 +12:00
test_documentation.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_find_method.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_gems.rb better fix... 2012-01-28 19:50:56 -08:00
test_help.rb Fix test I broke by making "help help" include the word foo 2012-03-01 17:10:55 -08:00
test_input.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_introspection.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_ls.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_shell.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_show_source.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00