Add docs, improve README
All checks were successful
Build and Publish / release (push) Successful in 1m22s
All checks were successful
Build and Publish / release (push) Successful in 1m22s
This commit is contained in:
7
Makefile
7
Makefile
@ -10,10 +10,10 @@ GO_FORMATTER := gofumpt
|
||||
IS_GNU_SED := $(shell sed --version >/dev/null 2>&1 && echo true || echo false)
|
||||
SED_INLINE := $(if $(filter true,$(IS_GNU_SED)),-i,-i '')
|
||||
|
||||
.PHONY: all tools schema generate test build install clean
|
||||
.PHONY: all tools schema generate test build install docs clean
|
||||
|
||||
# Default target
|
||||
all: tools schema generate test build install
|
||||
all: tools schema generate test build docs install
|
||||
|
||||
tools:
|
||||
go install golang.org/x/tools/cmd/stringer
|
||||
@ -56,6 +56,9 @@ build: generate test
|
||||
install:
|
||||
go install -v $(CLIENT_PKG)
|
||||
|
||||
docs:
|
||||
bin/eia-client docs md
|
||||
|
||||
# Clean up generated files and build artifacts
|
||||
clean:
|
||||
rm -rf bin/eia-client
|
||||
|
Reference in New Issue
Block a user