diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-09-06 17:02:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 17:02:25 +0800 |
commit | 06193ed825094581da4fb5550804d7445fc5ae13 (patch) | |
tree | bd2d966235a224b9d28d316ef915481a63fac5f9 /Taskfile.yml | |
parent | 519e59b5778571ace3f681b81a21b92a38ede890 (diff) |
schemadoc: add go:generate to output database schema (#6310)
* schemadoc: add go:generate to output database schema
* Check errors
* Revert string renames
Diffstat (limited to 'Taskfile.yml')
-rw-r--r-- | Taskfile.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Taskfile.yml b/Taskfile.yml index f4fafa02..189a0d73 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -27,7 +27,7 @@ tasks: BUILD_COMMIT: sh: git rev-parse HEAD - generate: + generate-bindata: desc: Generate bindata for all assets. deps: [clean] cmds: @@ -35,6 +35,15 @@ tasks: - go generate internal/assets/templates/templates.go - go generate internal/assets/public/public.go + generate-schemadoc: + desc: Generate database schema documentation. + cmds: + - go generate ./internal/db/schemadoc + + generate: + desc: Run all go:generate commands. + deps: [generate-bindata, generate-schemadoc] + test: desc: Run all tests. cmds: |