-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add show_cmds
command
#463
Conversation
0187382
to
8d2f688
Compare
WDYT about this?
|
I think
Do you mean:
If you do, could 2) happen before Ruby 3.2? |
I mean something more like an
Yes
The fact that we think it's worth a major version bump in IRB implies that we probably shouldn't make that happen after rc1 that was released yesterday. I'm not sure if it's worth rushing when you could just alias it from |
Here are my thoughts around this:
So based on our current plan, I hope we can find something rememberable to users. I'd open a PR for the |
What about |
👍 I've renamed the command to |
f04ce9a
to
c3aa9e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Very nice feature
Specification
Each command class should specify
category
anddescription
attributes, like:show_cmds
lists all available commands (group by categories) and their descriptions.Name Selection
Currently, commands in
extend-command.rb
aren't named consistently.irb_
prefix, likeirb_ls
irb_load
irb_pop_workspace
Commands also have different numbers of aliases:
irb_pop_workspace
has 5ls
irb_load
So in this PR, I try to make the name selection as simple as possible:
irb_load
Result
Future Improvments
show_cmds <cmd>
should provide detail usages for individual commands, as well as its aliases.show_cmds
should be renamed/aliased tohelp
so it matches other tools likepry
,debug
, andbyebug
(with the currenthelp
renamed toshow_doc
).