From bf2a27d6dab17fec12f5fcc13c8a2b5caa8d97fc Mon Sep 17 00:00:00 2001 From: David Allen Date: Tue, 23 Jul 2024 16:23:18 -0600 Subject: [PATCH] Added 'docs' rule to Makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index dda9c30..c21ed53 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,12 @@ diff: ## git diff git diff --exit-code RES=$$(git status --porcelain) ; if [ -n "$$RES" ]; then echo $$RES && exit 1 ; fi +.PHONY: docs +docs: ## go docs + $(call print-target) + go doc github.com/OpenCHAMI/magellan/cmd + go doc github.com/OpenCHAMI/magellan/internal + go doc github.com/OpenCHAMI/magellan/pkg/crawler define print-target @printf "Executing target: \033[36m$@\033[0m\n"