Color output #4

Merged
Sven merged 8 commits from colors into main 2022-05-29 07:31:37 +00:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit d2a41716b2 - Show all commits

View file

@ -1,6 +1,10 @@
# frozen_string_literal: true
class FormatStaged
##
# Entry in the git index.
#
# Data as produced by `git diff-index`
class Entry
PATTERN = /^
:(?<src_mode>\d+)\s

View file

@ -6,6 +6,8 @@ require 'format-staged/entry'
require 'format-staged/io'
require 'shellwords'
##
# Runs staged changes through a formatting tool
class FormatStaged
attr_reader :formatter, :patterns, :update, :write, :verbose