lib/scide/commands/show.rb in scide-0.0.5 vs lib/scide/commands/show.rb in scide-0.0.6

- old
+ new

@@ -1,12 +1,33 @@ module Scide module Commands + # 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 class Show < Scide::Command + def initialize contents, options = {} + super contents, options + end + + # Returns a configuration fragment that will put + # this command GNU \Screen window without running it. + # This will use screen's <tt>stuff</tt> command to + # put the text in the window. def to_screen - %|stuff "#{text_with_properties}"\n| + %|stuff "#{text_with_options}"| end end end end