Resolve host aliases through ~/.ssh/config with kevinburke/ssh_config: HostName defaults to the alias, key=value syntax, Host * defaults, Include, quotes, several IdentityFile, '#' inside values (N-P1-5). Endpoint.Key includes the user (N-P2-3). Port the hosts.dat store with atomic writes and a base64 password field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
807 B
Makefile
34 lines
807 B
Makefile
BUMP_VERSION := $(GOPATH)/bin/bump_version
|
|
WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
|
|
|
|
lint:
|
|
go vet ./...
|
|
go run honnef.co/go/tools/cmd/staticcheck@latest ./...
|
|
go run github.com/kevinburke/differ@latest gofmt -s -w .
|
|
|
|
test:
|
|
@# the timeout helps guard against infinite recursion
|
|
go test -timeout=250ms ./...
|
|
|
|
race-test:
|
|
go test -timeout=500ms -race ./...
|
|
|
|
coverage:
|
|
go test -trimpath -timeout=250ms -coverprofile=coverage.out -covermode=atomic ./...
|
|
go tool cover -func=coverage.out
|
|
|
|
$(BUMP_VERSION):
|
|
go get -u github.com/kevinburke/bump_version
|
|
|
|
$(WRITE_MAILMAP):
|
|
go get -u github.com/kevinburke/write_mailmap
|
|
|
|
release: test | $(BUMP_VERSION)
|
|
$(BUMP_VERSION) --tag-prefix=v minor config.go
|
|
|
|
force: ;
|
|
|
|
AUTHORS.txt: force | $(WRITE_MAILMAP)
|
|
$(WRITE_MAILMAP) > AUTHORS.txt
|
|
|
|
authors: AUTHORS.txt
|