Class: Scide::Commands::Show
- Inherits:
-
Scide::Command
- Object
- Scide::Command
- Scide::Commands::Show
- Defined in:
- lib/scide/commands/show.rb
Overview
Prepares and shows a command but do not run it.
Configuration Example
# this YAML configuration,
projects:
project1:
options:
host: 127.0.0.1
windows:
- "window1 SHOW ssh %{host}"
# will produce the following command in window1:
ssh 127.0.0.1
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Scide::Command
Instance Method Summary collapse
-
#to_screen ⇒ Object
Returns a configuration fragment that will show this command in a GNU Screen window without running it.
Methods inherited from Scide::Command
#initialize, resolve, #text_with_options
Constructor Details
This class inherits a constructor from Scide::Command
Instance Method Details
#to_screen ⇒ Object
Returns a configuration fragment that will show this command in a GNU Screen window without running it. This will use screen’s stuff
command to put the text in the window.
24 25 26 |
# File 'lib/scide/commands/show.rb', line 24 def to_screen %|stuff "#{}"| end |