-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
51 lines (37 loc) · 985 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
all: tidy format test-color lint build clean
tidy:
go mod tidy
test:
go test -race -failfast ./...
test-color:
# go install github.com/haunt98/go-test-color@latest
go-test-color -race -failfast ./...
coverage:
go test -coverprofile=coverage.out ./...
coverage-cli: coverage
go tool cover -func=coverage.out
coverage-html: coverage
go tool cover -html=coverage.out
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 .
shfmt -w -s -i 4 ./scripts \
./data/zsh/top-zshrc \
./data/zsh/bottom-zshrc
build:
go build ./cmd/dot
clean:
rm -rf dot
dot-upd:
go run ./cmd/dot upd
dot-ins:
go run ./cmd/dot ins
dot-dl:
go run ./cmd/dot dl
dot-df:
go run ./cmd/dot df