chore: format file
parent
2c8523a857
commit
57e54b79d5
17
Makefile
17
Makefile
|
@ -3,6 +3,9 @@
|
|||
all:
|
||||
$(MAKE) test-color
|
||||
$(MAKE) lint
|
||||
$(MAKE) format
|
||||
$(MAKE) build
|
||||
$(MAKE) clean
|
||||
go mod tidy
|
||||
|
||||
test-color:
|
||||
|
@ -11,3 +14,17 @@ test-color:
|
|||
|
||||
lint:
|
||||
golangci-lint run ./...
|
||||
|
||||
format:
|
||||
go install github.com/haunt98/gofimports/cmd/gofimports@latest
|
||||
go install mvdan.cc/gofumpt@latest
|
||||
go install mvdan.cc/sh/v3/cmd/shfmt@latest
|
||||
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
|
||||
gofumpt -w -extra .
|
||||
|
||||
build:
|
||||
$(MAKE) clean
|
||||
go build ./cmd/update-go-mod
|
||||
|
||||
clean:
|
||||
rm -rf update-go-mod
|
||||
|
|
|
@ -11,8 +11,9 @@ import (
|
|||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"github.com/make-go-great/color-go"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/make-go-great/color-go"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -3,8 +3,9 @@ package cli
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/make-go-great/color-go"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/make-go-great/color-go"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
Loading…
Reference in New Issue