lib/sample_cmdlet_patterns/commands/log_levels.rb
def execute(input: $stdin, output: $stdout)
        logger = TTY::Logger.new
        logger.debug    'logs message at :debug level'
        logger.info     'logs message at :info level'
        logger.success  'logs message at :info level'
        logger.wait     'logs message at :info level'
        logger.warn     'logs message at :warn level'
        logger.error    'logs message at :error level'
        logger.fatal    'logs message at :fatal level'

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


Execute LogLevels subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        logger = TTY::Logger.new
        logger.debug    'logs message at :debug level'
        logger.info     'logs message at :info level'
        logger.success  'logs message at :info level'
        logger.wait     'logs message at :info level'
        logger.warn     'logs message at :warn level'
        logger.error    'logs message at :error level'
        logger.fatal    'logs message at :fatal level'
        :gui
      end
def execute ( input : $stdin , output : $stdout ) logger = TTY :: Logger . new logger . debug 'logs message at :debug level' logger . info 'logs message at :info level' logger . success 'logs message at :info level' logger . wait 'logs message at :info level' logger . warn 'logs message at :warn level' logger . error 'logs message at :error level' logger . fatal 'logs message at :fatal level' :gui end
Execute LogLevels subcommand taking input from
a input stream and writing to output stream
Execute LogLevels subcommand taking input from a input stream and writing to output stream
input
output