1
0
mirror of synced 2026-04-03 14:26:55 +00:00

WIP: make SSH package dedicated submodule

This commit is contained in:
Hidde Beydals
2020-06-09 13:57:44 +02:00
parent 9e31bbe716
commit e32485e3d3
12 changed files with 849 additions and 8 deletions

29
cmd/tk/Makefile Normal file
View File

@@ -0,0 +1,29 @@
VERSION?=$(shell grep 'VERSION' cmd/tk/main.go | awk '{ print $$4 }' | tr -d '"')
PROJECT_ROOT=$(shell git rev-parse --show-toplevel)
all: test build
tidy:
go mod tidy
fmt:
go fmt ./...
vet:
go vet ./...
test: tidy fmt vet
go test ./... -coverprofile cover.out
build:
CGO_ENABLED=0 go build -o $(PROJECT_ROOT)/bin/tk .
install:
go install .
.PHONY: docs
docs:
mkdir -p $(PROJECT_ROOT)/docs/cmd && go run . docgen $(PROJECT_ROOT)/docs/cmd
install-dev:
CGO_ENABLED=0 go build -o /usr/local/bin .