lib/sample_cmdlet_patterns/commands/markdown_table.rb
def execute(input: $stdin, output: $stdout)
        markdown = <<~MARKDOWN
          | Tables   |      Are      |  Cool |
          |----------|:-------------:|------:|
          | col 1 is |  left-aligned | $1600 |
          | col 2 is |    centered   |   $12 |
          | col 3 is | right-aligned |    $1 |
        MARKDOWN
        parsed = TTY::Markdown.parse(markdown)
        puts parsed

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


Execute MarkdownTable subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        markdown = <<~MARKDOWN
          | Tables   |      Are      |  Cool |
          |----------|:-------------:|------:|
          | col 1 is |  left-aligned | $1600 |
          | col 2 is |    centered   |   $12 |
          | col 3 is | right-aligned |    $1 |
        MARKDOWN
        parsed = TTY::Markdown.parse(markdown)
        puts parsed
        :gui
      end
def execute ( input : $stdin , output : $stdout ) markdown = <<~MARKDOWN 
          | Tables   |      Are      |  Cool |
          |----------|:-------------:|------:|
          | col 1 is |  left-aligned | $1600 |
          | col 2 is |    centered   |   $12 |
          | col 3 is | right-aligned |    $1 |
         MARKDOWN parsed = TTY :: Markdown . parse ( markdown ) puts parsed :gui end
Execute MarkdownTable subcommand taking input from
a input stream and writing to output stream
Execute MarkdownTable subcommand taking input from a input stream and writing to output stream
input
output