From 46ab658e83981fc23d473e10cdfd1c78d09a339f Mon Sep 17 00:00:00 2001 From: airforce270 <96109779+airforce270@users.noreply.github.com> Date: Tue, 30 Jul 2024 00:18:22 -0500 Subject: [PATCH] Use go generate for doc gen instead of shell script. --- README.md | 2 +- gen-docs.sh | 3 --- main.go | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100755 gen-docs.sh diff --git a/README.md b/README.md index 6b07f8b..f4a1723 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ To run the bot locally: Some documentation is generated. -After making changes, run `./gen-docs.sh` from the main directory to regenerate +After making changes, run `go generate` from the main directory to regenerate the docs. ## Running in production diff --git a/gen-docs.sh b/gen-docs.sh deleted file mode 100755 index 79fe25e..0000000 --- a/gen-docs.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -go run docs/gen.go diff --git a/main.go b/main.go index ed187ab..34aed15 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,6 @@ // Package main contains the main logic for airbot. +// +//go:generate go run docs/gen.go package main import (