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


Execute PromptSay subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        prompt = TTY::Prompt.new
        prompt.say('some cool message')
        prompt.say(Pastel.new.magenta('some cool message pink'))
        prompt.ok('OK OK OK')
        prompt.warn('Warning!')
        prompt.error('You really screwed up here')
        :gui
      end
def execute ( input : $stdin , output : $stdout ) prompt = TTY :: Prompt . new prompt . say ( 'some cool message' ) prompt . say ( Pastel . new . magenta ( 'some cool message pink' ) ) prompt . ok ( 'OK OK OK' ) prompt . warn ( 'Warning!' ) prompt . error ( 'You really screwed up here' ) :gui end
Execute PromptSay subcommand taking input from
a input stream and writing to output stream
Execute PromptSay subcommand taking input from a input stream and writing to output stream
input
output