mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
updated docs to include info on show-command command
This commit is contained in:
parent
7c968e8740
commit
da823f1bb6
1 changed files with 3 additions and 9 deletions
|
@ -245,17 +245,11 @@ If you want to access a method of the same name, prefix the invocation by whites
|
||||||
* `cd VAR` Starts a `Pry` session on the variable VAR. E.g `cd @x`
|
* `cd VAR` Starts a `Pry` session on the variable VAR. E.g `cd @x`
|
||||||
(use `cd ..` to go back).
|
(use `cd ..` to go back).
|
||||||
* `show-method [OPTIONS] METH` Displays the sourcecode for the method
|
* `show-method [OPTIONS] METH` Displays the sourcecode for the method
|
||||||
`METH`. E.g `show-method hello`. See `show-method --help` for more info.
|
`METH`. e.g `show-method hello`. See `show-method --help` for more info.
|
||||||
* `show-doc [OPTIONS] METH` Displays comments for `METH`. See `show-doc
|
* `show-doc [OPTIONS] METH` Displays comments for `METH`. See `show-doc
|
||||||
--help` for more info.
|
--help` for more info.
|
||||||
* `exit-program` or `quit-program` will end the currently running
|
* `show-command COMMAND` Displays the sourcecode for the given Pry
|
||||||
program.
|
command. e.g: `show-command cd`
|
||||||
* `nesting` Shows Pry nesting information.
|
|
||||||
* `cat-file FILE` Displays the contents of a file on disk in the Pry session.
|
|
||||||
* `eval-file [OPTIONS] FILE` Evals a Ruby script at top-level or in
|
|
||||||
the current context. See `eval-file --help` for more info.
|
|
||||||
* `!pry` Starts a Pry session on the implied receiver; this can be
|
|
||||||
used in the middle of an expression in multi-line input.
|
|
||||||
* `jump-to NEST_LEVEL` Unwinds the Pry stack (nesting level) until the appropriate nesting level is reached.
|
* `jump-to NEST_LEVEL` Unwinds the Pry stack (nesting level) until the appropriate nesting level is reached.
|
||||||
* `exit-all` breaks out of all Pry nesting levels and returns to the
|
* `exit-all` breaks out of all Pry nesting levels and returns to the
|
||||||
calling process.
|
calling process.
|
||||||
|
|
Loading…
Reference in a new issue