Skip to content
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

How to list all commands ? #140

Closed
rusikf opened this issue Apr 25, 2015 · 10 comments
Closed

How to list all commands ? #140

rusikf opened this issue Apr 25, 2015 · 10 comments

Comments

@rusikf
Copy link

rusikf commented Apr 25, 2015

I want't to list all commands like in pry

[1] pry(main)> help
Help
  help               Show a list of commands or information about a specific command.

Context
  cd                 Move into a new context (object or scope).
  find-method        Recursively search for a method within a class/module or the current namespace.
  ls                 Show the list of vars and methods in the current scope.
  pry-backtrace      Show the backtrace for the pry session.
  raise-up           Raise an exception out of the current pry instance.
  reset              Reset the repl to a clean state.
  watch              Watch the value of an expression and print a notification whenever it changes.
  whereami           Show code surrounding the current context.
  wtf?               Show the backtrace of the most recent exception.
...

Is it possible in byebug? I want to list ALL commands with desc, it it really helpfull for me, because now, if you type help you have

(byebug) help

  h[elp][ <cmd>[ <subcmd>]]

  help                -- prints this help.
  help <cmd>          -- prints help on command <cmd>.
  help <cmd> <subcmd> -- prints help on <cmd>'s subcommand <subcmd>.

@deivid-rodriguez
Copy link
Owner

It's not currently possible, but I like pry's behavior better as you do. Feel free to submit a PR.

@sampierson
Copy link

I seem to recall you could do this in the past. Am I remembering incorrectly or was there a "?" command that listed all the commands? Or maybe it was just "help" with no args. If so I'm curious why that went away.

@deivid-rodriguez
Copy link
Owner

I think you are remembering incorrectly.

@sampierson
Copy link

Ok.
I found this. Very useful: http://fleeblewidget.co.uk/2014/05/byebug-cheatsheet/

@nijotz
Copy link

nijotz commented Jun 17, 2015

@deivid-rodriguez curious, why is it not currently possible? And if it's not possible, how would I go about doing this and submitting a PR?

@deivid-rodriguez
Copy link
Owner

@nijotz I've been working on this, will commit the fix soon.

@nijotz
Copy link

nijotz commented Jun 17, 2015

nice! 🍺

@amikula
Copy link

amikula commented Jun 28, 2015

Great news @deivid-rodriguez! It's frustrating to have to come back to the README every time I want to look for a command. Let me know if you need help on this.

FWIW, there used to be a list of commands (without descriptions) in 3.5.1. That was removed in f492dbb.

@deivid-rodriguez
Copy link
Owner

Yes, I noticed it while implementing this back. This is already coded, I'm just waiting to find some time to clean it up and push it cause it ended up requiring more changes than I expected.

@deivid-rodriguez
Copy link
Owner

This is now available in latest master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants