chore: format file
parent
2c8523a857
commit
57e54b79d5
17
Makefile
17
Makefile
|
@ -3,6 +3,9 @@
|
||||||
all:
|
all:
|
||||||
$(MAKE) test-color
|
$(MAKE) test-color
|
||||||
$(MAKE) lint
|
$(MAKE) lint
|
||||||
|
$(MAKE) format
|
||||||
|
$(MAKE) build
|
||||||
|
$(MAKE) clean
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
test-color:
|
test-color:
|
||||||
|
@ -11,3 +14,17 @@ test-color:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
golangci-lint run ./...
|
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"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/make-go-great/color-go"
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|
||||||
|
"github.com/make-go-great/color-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -3,8 +3,9 @@ package cli
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/make-go-great/color-go"
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|
||||||
|
"github.com/make-go-great/color-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in New Issue