aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/gen_graphql.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/graphql/gen_graphql.go')
-rw-r--r--api/graphql/gen_graphql.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/api/graphql/gen_graphql.go b/api/graphql/gen_graphql.go
deleted file mode 100644
index 19c5f1e3..00000000
--- a/api/graphql/gen_graphql.go
+++ /dev/null
@@ -1,33 +0,0 @@
-//go:build ignore
-
-package main
-
-import (
- "fmt"
- "io/ioutil"
- "log"
- "os"
-
- "github.com/99designs/gqlgen/api"
- "github.com/99designs/gqlgen/codegen/config"
- "github.com/pkg/errors"
-)
-
-func main() {
- fmt.Println("Generating graphql code ...")
-
- log.SetOutput(ioutil.Discard)
-
- cfg, err := config.LoadConfigFromDefaultLocations()
- if os.IsNotExist(errors.Cause(err)) {
- cfg = config.DefaultConfig()
- } else if err != nil {
- _, _ = fmt.Fprintln(os.Stderr, err.Error())
- os.Exit(2)
- }
-
- if err = api.Generate(cfg); err != nil {
- _, _ = fmt.Fprintln(os.Stderr, err.Error())
- os.Exit(3)
- }
-}