Sha256: 83a899be72abf84f3c1c8d0def6f47953254d78d6a33198b2f2d8eec72caac9e
Contents?: true
Size: 592 Bytes
Versions: 9
Compression:
Stored size: 592 Bytes
Contents
# encoding: utf-8 require 'pastel' require 'tty/command/printers/abstract' module TTY class Command module Printers class Progress < Abstract def print_command_exit(cmd, status, runtime, *args) output.print(success_or_failure(status)) end def write(*) end private # @api private def success_or_failure(status) if status == 0 decorate('.', :green) else decorate('F', :red) end end end # Progress end # Printers end # Command end # TTY
Version data entries
9 entries across 9 versions & 1 rubygems