Sha256: 27069bc4e0a4c611d53c8d5a73a68042872628feb7c35fe98d64353be051d7c2

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

require 'wlog/domain/sys_config'
module Wlog
# Cute printer for git commit logs
# @author Simon Symeonidis
module GitCommitPrinter

  def print_git_commits(commit_a)
    sm = SysConfig.string_decorator 
    
    commit_a.each do |commit| 
      print '  '
      print sm.blue(commit.commit)
      print ' ' 
      puts  sm.green(commit.shortlog[0..50] + ' ...')
    end
  nil end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wlog-1.2.1 lib/wlog/tech/git_commit_printer.rb
wlog-1.2.0 lib/wlog/tech/git_commit_printer.rb