lib/sample_cmdlet_patterns/commands/table_padding.rb
def execute(input: $stdin, output: $stdout)
        table = TTY::Table.new header: ['head1', 'head2']
        table << ["Multi\nLine", "Text\nthat\nwraps"]
        table << ["Some\nother\ntext", 'Simple']
        puts table.render :ascii, multiline: true, padding: [1,2,1,2]

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


Execute TablePadding subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        table = TTY::Table.new header: ['head1', 'head2']
        table << ["Multi\nLine", "Text\nthat\nwraps"]
        table << ["Some\nother\ntext", 'Simple']
        puts table.render :ascii, multiline: true, padding: [1,2,1,2]
        :gui
      end
def execute ( input : $stdin , output : $stdout ) table = TTY :: Table . new header : [ 'head1' , 'head2' ] table << [ "Multi\nLine" , "Text\nthat\nwraps" ] table << [ "Some\nother\ntext" , 'Simple' ] puts table . render :ascii , multiline : true , padding : [ 1 , 2 , 1 , 2 ] :gui end
Execute TablePadding subcommand taking input from
a input stream and writing to output stream
Execute TablePadding subcommand taking input from a input stream and writing to output stream
input
output