mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
* Add gql client generation files * Update dependencies * Add stash-box client generation to the makefile * Move scraped scene object matchers to models * Add stash-box to scrape with dropdown * Add scrape scene from fingerprint in UI
17 lines
373 B
Go
17 lines
373 B
Go
package codegen
|
|
|
|
import (
|
|
"github.com/99designs/gqlgen/codegen/templates"
|
|
)
|
|
|
|
func GenerateCode(data *Data) error {
|
|
return templates.Render(templates.Options{
|
|
PackageName: data.Config.Exec.Package,
|
|
Filename: data.Config.Exec.Filename,
|
|
Data: data,
|
|
RegionTags: true,
|
|
GeneratedHeader: true,
|
|
Packages: data.Config.Packages,
|
|
})
|
|
}
|