diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c30f299..9cb62f1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: build-and-test-gfn +name: build-and-test on: [push] jobs: build: diff --git a/.gitignore b/.gitignore index aaadf73..37035c2 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ go.work.sum # Editor/IDE # .idea/ # .vscode/ + +ts diff --git a/Makefile b/Makefile index add81b8..687f554 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ # # no need to modify anything below -tool = gfn +tool = ts VERSION = $(shell grep VERSION config.go | head -1 | cut -d '"' -f2) archs = darwin freebsd linux windows PREFIX = /usr/local @@ -37,11 +37,10 @@ install: buildlocal install -o $(UID) -g $(GID) -m 444 $(tool).1 $(PREFIX)/man/man1/ clean: - rm -rf $(tool) coverage.out testdata t/out + rm -rf $(tool) coverage.* testdata t/out test: clean - mkdir -p t/out - go test ./... $(ARGS) + go test -cover ./... $(ARGS) testlint: test lint @@ -60,7 +59,8 @@ singletest: cover-report: go test ./... -cover -coverprofile=coverage.out - go tool cover -html=coverage.out + go tool cover -html=coverage.out -o coverage.html + chromium coverage.html goupdate: go get -t -u=patch ./... @@ -72,8 +72,8 @@ release: gh release create v$(VERSION) --generate-notes show-versions: buildlocal - @echo "### gfn version:" - @./gfn -V + @echo "### ts version:" + @./ts -V @echo @echo "### go module versions:" diff --git a/README.md b/README.md index e7086a9..49e8cb9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ generic cli timestamp parser and calculator tool -# Usage +## Usage ```default This is ts, a timestamp tool. @@ -21,6 +21,28 @@ Usage: ts