lib/sample_cmdlet_patterns/commands/key_reader_read_multiline.rb
# Execute KeyReaderReadMultiline subcommand taking input from
# a input stream and writing to output stream
#
# sample: output.puts 'OK'
Execute KeyReaderReadMultiline subcommand taking input from
a input stream and writing to output stream


Execute KeyReaderReadMultiline subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        heading 'Read more than one line terminated by Ctrl+d or Ctrl+z'
        prompt.ok reader.read_multiline 
        heading 'If you wish keystrokes to be interpreted by the terminal instead, set :raw option false'
        prompt.ok reader.read_line(raw: false)
        heading 'Need line prefixes'
        prompt.ok reader.read_multiline('>> ')
        :gui
      end
def execute ( input : $stdin , output : $stdout ) heading 'Read more than one line terminated by Ctrl+d or Ctrl+z' prompt . ok reader . read_multiline heading 'If you wish keystrokes to be interpreted by the terminal instead, set :raw option false' prompt . ok reader . read_line ( raw : false ) heading 'Need line prefixes' prompt . ok reader . read_multiline ( '>> ' ) :gui end
Execute KeyReaderReadMultiline subcommand taking input from
a input stream and writing to output stream
Execute KeyReaderReadMultiline subcommand taking input from a input stream and writing to output stream
# => [ "line1", "line2", ... ]
input
output