forked from coop-cloud/abra
chore: formatting, indentation
This commit is contained in:
parent
f5e2710138
commit
2eebac6fc0
2
LICENSE
2
LICENSE
|
@ -1,5 +1,5 @@
|
||||||
Abra: The Co-op Cloud utility belt
|
Abra: The Co-op Cloud utility belt
|
||||||
Copyright (C) 2022 Co-op Cloud <helo@coopcloud.tech>
|
Copyright (C) 2022 Co-op Cloud <helo@coopcloud.tech>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -1,9 +1,10 @@
|
||||||
ABRA := ./cmd/abra
|
ABRA := ./cmd/abra
|
||||||
KADABRA := ./cmd/kadabra
|
KADABRA := ./cmd/kadabra
|
||||||
COMMIT := $(shell git rev-list -1 HEAD)
|
COMMIT := $(shell git rev-list -1 HEAD)
|
||||||
GOPATH := $(shell go env GOPATH)
|
GOPATH := $(shell go env GOPATH)
|
||||||
LDFLAGS := "-X 'main.Commit=$(COMMIT)'"
|
LDFLAGS := "-X 'main.Commit=$(COMMIT)'"
|
||||||
DIST_LDFLAGS := $(LDFLAGS)" -s -w"
|
DIST_LDFLAGS := $(LDFLAGS)" -s -w"
|
||||||
|
|
||||||
export GOPRIVATE=coopcloud.tech
|
export GOPRIVATE=coopcloud.tech
|
||||||
|
|
||||||
all: format check build test
|
all: format check build test
|
||||||
|
@ -29,7 +30,8 @@ format:
|
||||||
@gofmt -s -w .
|
@gofmt -s -w .
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@test -z $$(gofmt -l .) || (echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
@test -z $$(gofmt -l .) || \
|
||||||
|
(echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@go test ./... -cover -v
|
@go test ./... -cover -v
|
||||||
|
|
Loading…
Reference in New Issue