lib/sample_cmdlet_patterns/commands/table_width.rb
def execute(input: $stdin, output: $stdout)
        header = ['h1', 'h2', 'h3']
        rows   = [['aaa1', 'aa2', 'aaaaaaa3'], ['b1', 'b2', 'b3']]
        table = TTY::Table.new header, rows
        puts table.render :unicode, width: 80, resize: true 

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


Execute TableWidth subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        header = ['h1', 'h2', 'h3']
        rows   = [['aaa1', 'aa2', 'aaaaaaa3'], ['b1', 'b2', 'b3']]
        table = TTY::Table.new header, rows
        puts table.render :unicode, width: 80, resize: true 
        :gui
      end
def execute ( input : $stdin , output : $stdout ) header = [ 'h1' , 'h2' , 'h3' ] rows = [ [ 'aaa1' , 'aa2' , 'aaaaaaa3' ] , [ 'b1' , 'b2' , 'b3' ] ] table = TTY :: Table . new header , rows puts table . render :unicode , width : 80 , resize : true :gui end
Execute TableWidth subcommand taking input from
a input stream and writing to output stream
Execute TableWidth subcommand taking input from a input stream and writing to output stream
input
output