feat(db): prepare migrations and core CRD

This commit is contained in:
Peter 2024-12-13 09:09:14 +01:00
parent 734e1b22f9
commit 12090c913a
Signed by: prskr
GPG key ID: F56BED6903BC5E37
105 changed files with 5910 additions and 54 deletions
magefiles

View file

@ -1,13 +1,20 @@
package main
import (
"embed"
"log/slog"
"os"
"text/template"
_ "github.com/magefile/mage/sh"
)
var workingDir string
var (
workingDir string
//go:embed templates/*.tmpl
templatesFS embed.FS
templates *template.Template
)
func init() {
logLevel := new(slog.LevelVar)
@ -27,4 +34,6 @@ func init() {
} else {
workingDir = wd
}
templates = template.Must(template.ParseFS(templatesFS, "templates/*.tmpl"))
}