Sha256: 87595d0a3033811d87a2d054718ebca5609244e71dee82e68f7af72ca6b10f01

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require 'thor'

module Uffizzi
  module UI
    class Shell
      def initialize
        @shell = Thor::Shell::Basic.new
      end

      def say(message)
        @shell.say(message)
      end

      def print_in_columns(messages)
        @shell.print_in_columns(messages)
      end

      def print_table(table_data)
        @shell.print_table(table_data)
      end

      def last_message
        @shell.send(:stdout).string.strip
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uffizzi-cli-0.3.5 lib/uffizzi/shell.rb
uffizzi-cli-0.3.4 lib/uffizzi/shell.rb
uffizzi-cli-0.3.3 lib/uffizzi/shell.rb
uffizzi-cli-0.3.2 lib/uffizzi/shell.rb