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


Execute LogSimpleLog subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        logger = TTY::Logger.new
        logger.info 'Deployed successfully'
        logger.info 'Deployed', 'successfully'
        logger.info { 'Dynamically generated info' }
        logger.success 'Include structured data', myapp: 'myapp', env: 'prod'
        :gui
      end
def execute ( input : $stdin , output : $stdout ) logger = TTY :: Logger . new logger . info 'Deployed successfully' logger . info 'Deployed' , 'successfully' logger . info { 'Dynamically generated info' } logger . success 'Include structured data' , myapp : 'myapp' , env : 'prod' :gui end
Execute LogSimpleLog subcommand taking input from
a input stream and writing to output stream
Execute LogSimpleLog subcommand taking input from a input stream and writing to output stream
input
output