summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-11-04 05:19:58 +0800
committerKyrylo Silin <silin@kyrylo.org>2018-11-04 05:19:58 +0800
commitf39c45fd2352809613370064d003aa767cfa1b3a (patch)
tree3ab2c3d287e06c7cc430b4849995b93476ef5990
parent60f20f8857caf2633e631cae274ad302daeee1d0 (diff)
downloadpry-prompt-commands.tar.gz
Delete the 'simple-prompt' commandprompt-commands
It's duplicative since you can use `change-prompt simple`.
-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