Class: Scide::Commands::Show

Inherits:
Scide::Command show all
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

Run

Instance Attribute Summary

Attributes inherited from Scide::Command

#options

Instance Method Summary collapse

Methods inherited from Scide::Command

#initialize, resolve, #text_with_options

Constructor Details

This class inherits a constructor from Scide::Command

Instance Method Details

#to_screenObject

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 "#{text_with_options}"|
end