lib/sample_cmdlet_patterns/commands/log.rb
def execute(input: $stdin, output: $stdout)
        loop do
          case @subcommand
          when :gui
            gui
          when :simple_log
            require_relative 'log_simple_log'
            subcmd = SampleCmdletPatterns::Commands::LogSimpleLog.new({})
          when :meta_data
            require_relative 'log_meta_data'
            subcmd = SampleCmdletPatterns::Commands::LogMetaData.new({})
          when :levels
            require_relative 'log_levels'
            subcmd = SampleCmdletPatterns::Commands::LogLevels.new({})
          when :exceptions
            require_relative 'log_exceptions'
            subcmd = SampleCmdletPatterns::Commands::LogExceptions.new({})
          when :types
            require_relative 'log_types'
            subcmd = SampleCmdletPatterns::Commands::LogTypes.new({})
          else
            break
          end
          @subcommand = subcmd&.execute(input: input, output: output)
        end
      end
# Execute Log command taking input from a input stream
# and writing to output stream
#
# sample: output.puts 'OK'
Execute Log command taking input from a input stream
and writing to output stream


Execute Log command taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        loop do
          case @subcommand
          when :gui
            gui
          when :simple_log
            require_relative 'log_simple_log'
            subcmd = SampleCmdletPatterns::Commands::LogSimpleLog.new({})
          when :meta_data
            require_relative 'log_meta_data'
            subcmd = SampleCmdletPatterns::Commands::LogMetaData.new({})
          when :levels
            require_relative 'log_levels'
            subcmd = SampleCmdletPatterns::Commands::LogLevels.new({})
          when :exceptions
            require_relative 'log_exceptions'
            subcmd = SampleCmdletPatterns::Commands::LogExceptions.new({})
          when :types
            require_relative 'log_types'
            subcmd = SampleCmdletPatterns::Commands::LogTypes.new({})
          else
            break
          end
          @subcommand = subcmd&.execute(input: input, output: output)
        end
      end
def execute ( input : $stdin , output : $stdout ) loop do case @subcommand when :gui gui when :simple_log require_relative 'log_simple_log' subcmd = SampleCmdletPatterns :: Commands :: LogSimpleLog . new ( { } ) when :meta_data require_relative 'log_meta_data' subcmd = SampleCmdletPatterns :: Commands :: LogMetaData . new ( { } ) when :levels require_relative 'log_levels' subcmd = SampleCmdletPatterns :: Commands :: LogLevels . new ( { } ) when :exceptions require_relative 'log_exceptions' subcmd = SampleCmdletPatterns :: Commands :: LogExceptions . new ( { } ) when :types require_relative 'log_types' subcmd = SampleCmdletPatterns :: Commands :: LogTypes . new ( { } ) else break end @subcommand = subcmd &. execute ( input : input , output : output ) end end
Execute Log command taking input from a input stream
and writing to output stream
Execute Log command taking input from a input stream and writing to output stream
input
output