fix(docs): add empty swagger file so that the package exists

This commit is contained in:
kolaente
2023-09-06 13:13:51 +02:00
parent 7c4b2c9b39
commit 06bc92556e
2 changed files with 21 additions and 0 deletions

View File

@@ -354,6 +354,8 @@ func DoTheSwag() {
return
}
runAndStreamOutput("go", "mod", "tidy")
runAndStreamOutput("go", "mod", "download")
checkAndInstallGoTool("swag", "github.com/swaggo/swag/cmd/swag")
runAndStreamOutput("swag", "init", "-g", "./pkg/routes/routes.go", "--parseDependency", "-d", RootPath, "-o", RootPath+"/pkg/swagger")
}