Sha256: 35fefe923202630817be4453ebcd17f652b2a19f852176fddff1cf8242714234
Contents?: true
Size: 610 Bytes
Versions: 7
Compression:
Stored size: 610 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true require 'pastel' require_relative '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
7 entries across 7 versions & 2 rubygems