2023-12-29 14:01:47 -06:00
|
|
|
define HELP_TEXT
|
|
|
|
Welcome!
|
|
|
|
|
|
|
|
Targets:
|
2023-12-29 16:15:52 -06:00
|
|
|
help provides help text
|
|
|
|
deps resolve dependencies
|
|
|
|
lint lint source for errors or breaking changes
|
|
|
|
legal prepends license to source code
|
|
|
|
generate generates swagger docs
|
2023-12-29 14:01:47 -06:00
|
|
|
|
|
|
|
endef
|
|
|
|
export HELP_TEXT
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "$$HELP_TEXT"
|
|
|
|
|
|
|
|
deps:
|
|
|
|
buf mod update
|
|
|
|
|
2023-12-28 17:45:50 -06:00
|
|
|
lint:
|
|
|
|
buf lint
|
|
|
|
addlicense -check -f ./legal/header.txt -skip yaml -skip yml -skip xml .
|
|
|
|
|
|
|
|
legal: .legal
|
|
|
|
.legal:
|
|
|
|
addlicense -f ./legal/header.txt -skip yaml -skip yml -skip xml .
|
2023-12-29 16:15:52 -06:00
|
|
|
|
|
|
|
generate:
|
|
|
|
buf generate .
|
|
|
|
cd scripts && go run ./merge-swagger \
|
|
|
|
-output ../swagger.json \
|
2023-12-30 20:33:35 -06:00
|
|
|
../*/*/*.swagger.json \
|
2023-12-29 16:15:52 -06:00
|
|
|
../swagger/metadata.json
|