Open
Conversation
sambostock
commented
Dec 25, 2023
lib/irb/extend-command.rb
Outdated
| :irb_exit_program, :ExitProgram, 'cmd/exit_program', | ||
| [:exit_program, NO_OVERRIDE], | ||
| [:quit_program, NO_OVERRIDE], | ||
| [:'exit-program', NO_OVERRIDE], # FIXME: This doesn't work properly; seems to match normal "exit" command |
Author
There was a problem hiding this comment.
This doesn't seem to work, but maybe we don't care?
I'd added these to match the commands in Pry, but I see we use show_source rather than show-source, so maybe we only want exit_program and quit_program.
330baa6 to
88d955d
Compare
Pry includes an `exit-program` command, also aliased as `quit-program` and `!!!` which calls `Kernel.exit`. This is useful when `binding.pry` has been used in a loop. This implements a similar `exit_program` command, also aliased as `quit_program` and `!!!`.
88d955d to
d08adb6
Compare
Member
|
With #851, the new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pry includes an
exit-programcommand, also aliased asquit-programand!!!which callsKernel.exit. This is useful whenbinding.pryhas been used in a loop.This implements a similar
exit_programcommand, also aliased asquit_programand!!!.