lib/sample_cmdlet_patterns/commands/markdown.rb
def execute(input: $stdin, output: $stdout)
        loop do
          case @subcommand
          when :gui
            gui
          when :simple
            require_relative 'markdown_simple'
            subcmd = SampleCmdletPatterns::Commands::MarkdownSimple.new({})
          when :list
            require_relative 'markdown_list'
            subcmd = SampleCmdletPatterns::Commands::MarkdownList.new({})
          when :code
            require_relative 'markdown_code'
            subcmd = SampleCmdletPatterns::Commands::MarkdownCode.new({})
          when :table
            require_relative 'markdown_table'
            subcmd = SampleCmdletPatterns::Commands::MarkdownTable.new({})
          else
            break
          end
          @subcommand = subcmd&.execute(input: input, output: output)
        end
      end
# Execute Markdown command taking input from a input stream
# and writing to output stream
#
# sample: output.puts 'OK'
Execute Markdown command taking input from a input stream
and writing to output stream


Execute Markdown 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
            require_relative 'markdown_simple'
            subcmd = SampleCmdletPatterns::Commands::MarkdownSimple.new({})
          when :list
            require_relative 'markdown_list'
            subcmd = SampleCmdletPatterns::Commands::MarkdownList.new({})
          when :code
            require_relative 'markdown_code'
            subcmd = SampleCmdletPatterns::Commands::MarkdownCode.new({})
          when :table
            require_relative 'markdown_table'
            subcmd = SampleCmdletPatterns::Commands::MarkdownTable.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 require_relative 'markdown_simple' subcmd = SampleCmdletPatterns :: Commands :: MarkdownSimple . new ( { } ) when :list require_relative 'markdown_list' subcmd = SampleCmdletPatterns :: Commands :: MarkdownList . new ( { } ) when :code require_relative 'markdown_code' subcmd = SampleCmdletPatterns :: Commands :: MarkdownCode . new ( { } ) when :table require_relative 'markdown_table' subcmd = SampleCmdletPatterns :: Commands :: MarkdownTable . new ( { } ) else break end @subcommand = subcmd &. execute ( input : input , output : output ) end end
Execute Markdown command taking input from a input stream
and writing to output stream
Execute Markdown command taking input from a input stream and writing to output stream
input
output