lib/sample_cmdlet_patterns/commands/log_exceptions.rb
def execute(input: $stdin, output: $stdout)
        logger = TTY::Logger.new
        begin
          raise ArgumentError, 'Wrong data'
        rescue ArgumentError => e
          logger.fatal('Error:', e)
        end

        :gui
      end
# Execute LogExceptions subcommand taking input from
# a input stream and writing to output stream
#
# sample: output.puts 'OK'
Execute LogExceptions subcommand taking input from
a input stream and writing to output stream


Execute LogExceptions subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        logger = TTY::Logger.new
        begin
          raise ArgumentError, 'Wrong data'
        rescue ArgumentError => e
          logger.fatal('Error:', e)
        end
        :gui
      end
def execute ( input : $stdin , output : $stdout ) logger = TTY :: Logger . new begin raise ArgumentError , 'Wrong data' rescue ArgumentError => e logger . fatal ( 'Error:' , e ) end :gui end
Execute LogExceptions subcommand taking input from
a input stream and writing to output stream
Execute LogExceptions subcommand taking input from a input stream and writing to output stream
input
output