mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
e617c7d420
the list-prompts command shows a list of available prompts as well as the active prompt in the list. prompts are drawn with a name as well as a short description. change-prompt can be used to change the prompt by the name found in the list-prompts command.
23 lines
507 B
Ruby
23 lines
507 B
Ruby
class Pry::Prompt
|
|
MAP = {
|
|
"default" => {
|
|
value: Pry::DEFAULT_PROMPT,
|
|
description: "the default pry prompt"
|
|
},
|
|
|
|
"simple" => {
|
|
value: Pry::SIMPLE_PROMPT,
|
|
description: "a simple prompt"
|
|
},
|
|
|
|
"nav" => {
|
|
value: Pry::NAV_PROMPT,
|
|
description: "a prompt that draws the binding stack as a path and includes information about _in_ and _out_"
|
|
},
|
|
|
|
"none" => {
|
|
value: Pry::NO_PROMPT,
|
|
description: "wave goodbye to the pry prompt"
|
|
}
|
|
}
|
|
end
|