mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-18 17:55:44 +00:00
Init toolkit CLI
This commit is contained in:
parent
ebdabaf98d
commit
c8fdf76084
5 changed files with 355 additions and 0 deletions
19
Makefile
Normal file
19
Makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
VERSION?=$(shell grep 'VERSION' cmd/tk/main.go | awk '{ print $$4 }' | tr -d '"')
|
||||
|
||||
all: tidy fmt vet test build
|
||||
|
||||
build:
|
||||
CGO_ENABLED=0 go build -o ./bin/tk ./cmd/tk
|
||||
|
||||
fmt:
|
||||
go fmt ./...
|
||||
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
tidy:
|
||||
go mod tidy
|
||||
|
||||
test:
|
||||
go test ./... -coverprofile cover.out
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue