summaryrefslogtreecommitdiff
path: root/lib/pry/commands/simple_prompt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/commands/simple_prompt.rb')
-rw-r--r--lib/pry/commands/simple_prompt.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/pry/commands/simple_prompt.rb b/lib/pry/commands/simple_prompt.rb
deleted file mode 100644
index a9aef4e3..00000000
--- a/lib/pry/commands/simple_prompt.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-class Pry
- class Command::SimplePrompt < Pry::ClassCommand
- match 'simple-prompt'
- group 'prompts'
- description 'Toggle the simple prompt.'
-
- banner <<-'BANNER'
- Toggle the simple prompt.
- BANNER
-
- def process
- state.disabled ^= true
-
- if state.disabled
- state.prev_prompt = _pry_.prompt
- _pry_.prompt = Pry::Prompt[:simple][:value]
- else
- _pry_.prompt = state.prev_prompt
- end
- end
- end
-
- Pry::Commands.add_command(Pry::Command::SimplePrompt)
-end