Sha256: d880c9ff7ef2a783b83c00f74f6fe67b0004c7d35d917fb9ba767e53e50ae48c
Contents?: true
Size: 543 Bytes
Versions: 10
Compression:
Stored size: 543 Bytes
Contents
require "rake" module Peppermint end task :"go:fmt" do if File.file? "go.mod" sh <<~SHELL find . \\( -not -path '*/target/*' \\) \ -and \\( -not -path '*/node_modules/*' \\) \ -and \\( -not -path '*/dist/*' \\) \ -and \\( -not -path '*/vendor/*' \\) \ -and \\( -not -path '*/tmp/*' \\) \ -and \\( -not -path '*/doc/*' \\) \ -and \\( -name '*.go' \\) \ -and -type f | xargs -r go fmt SHELL end end task :"go:fix" do if File.file? "go.mod" sh "go fix" end end
Version data entries
10 entries across 10 versions & 1 rubygems