summaryrefslogtreecommitdiff
path: root/lib/irb/extend-command.rb
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2024-02-11 05:17:37 +0000
committergit <svn-admin@ruby-lang.org>2024-02-11 05:17:40 +0000
commit5c4657f8832bcbb9e7c3c50b6fe69212a86de153 (patch)
tree4b5fb921d0b29eab706014691f6663d24e5eb3f8 /lib/irb/extend-command.rb
parent429eeb09f25bd1bd3f64f70c6ef409bedd3c6c1f (diff)
[ruby/irb] Polish the exit! command and its tests
(https://github.com/ruby/irb/pull/867) * Remove IRB.irb_exit! method It's not necessary to introduce a new method just for the exit! command at this moment. * Rename ExitForcedAction to ForceExit * Move force exit tests to a dedicated file * Fix nested history saving with exit! command Because we switched to use `Kernel#exit` instead of `exit!`, the outer session's ensure block in `Irb#run` will be run, which will save the history. This means the separate check to save history when force exiting is no longer necessary. * execute_lines helper should also capture IRB setup's output This prevents setup warnings from being printed to test output while allowing those output to be tested. * Update readme https://github.com/ruby/irb/commit/899d10ade1
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r--lib/irb/extend-command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index 2db2b80578..d303bf76da 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -37,7 +37,7 @@ module IRB # :nodoc:
[:irb_quit, OVERRIDE_PRIVATE_ONLY],
],
[
- :irb_exit!, :ExitForcedAction, "cmd/exit_forced_action",
+ :irb_exit!, :ForceExit, "cmd/force_exit",
[:exit!, OVERRIDE_PRIVATE_ONLY],
],