1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry/prompt.rb
Robert Gleeson e617c7d420 add 'list-prompts' and 'change-prompt' commands.
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.
2014-03-19 14:53:28 +01:00

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