lib/teuton-get/writer/terminal_writer.rb in teuton-get-0.1.0 vs lib/teuton-get/writer/terminal_writer.rb in teuton-get-0.2.0

- old
+ new

@@ -1,12 +1,11 @@ -require "colorize" require "tty-table" require_relative "writer" +require_relative "../format" class TerminalWriter < Writer def write(text = "", args = {}) - color = args[:color] || :silver - print text.colorize(color) + print TeutonGet::Format.colorize(text, args[:color]) end def writeln(text = "", args = {}) write("#{text}\n", args) end