lib/poc_sample_commands/commands/prompt_multi_line.rb
# Execute PromptMultiLine subcommand taking input from a input stream
# and writing to output stream
#
# sample: output.puts 'OK'
Execute PromptMultiLine subcommand taking input from a input stream
and writing to output stream


Execute PromptMultiLine subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        prompt = TTY::Prompt.new
        heading prompt.multiline("Description (multi line)?")
        heading prompt.multiline("Description - see prompt -->?", default: 'A super sweet prompt.')
        heading prompt.multiline("Description (dsl)?") do |q|
          q.default 'A super sweet prompt.'
          q.help 'Press thy ctrl+d to end'
        end
        return :gui
      end
def execute ( input : $stdin , output : $stdout ) prompt = TTY :: Prompt . new heading prompt . multiline ( "Description (multi line)?" ) heading prompt . multiline ( "Description - see prompt -->?" , default : 'A super sweet prompt.' ) heading prompt . multiline ( "Description (dsl)?" ) do | q | q . default 'A super sweet prompt.' q . help 'Press thy ctrl+d to end' end return :gui end
Execute PromptMultiLine subcommand taking input from a input stream
and writing to output stream
Execute PromptMultiLine subcommand taking input from a input stream and writing to output stream
input
<not_specific>
output
<not_specific>