Skip to content

Commit

Permalink
Merge pull request #1958 from 99designs/cleanup-main
Browse files Browse the repository at this point in the history
Cleanup main
  • Loading branch information
mtibben committed Feb 9, 2022
2 parents 42f3243 + be16474 commit d7da5b0
Show file tree
Hide file tree
Showing 10 changed files with 285 additions and 359 deletions.
19 changes: 19 additions & 0 deletions ambient.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package main

// Ambient imports
//
// These imports are referenced by the generated code.
// Dependency managers like dep have been known to prune them,
// so explicitly import them here.
//
// TODO: check if these imports are still necessary with go
// modules, and if so move the ambient import to the files
// where they are actually referenced
import (
_ "github.com/99designs/gqlgen/graphql"
_ "github.com/99designs/gqlgen/graphql/handler"
_ "github.com/99designs/gqlgen/graphql/introspection"
_ "github.com/99designs/gqlgen/handler"
_ "github.com/vektah/gqlparser/v2"
_ "github.com/vektah/gqlparser/v2/ast"
)
10 changes: 0 additions & 10 deletions cmd/ambient.go

This file was deleted.

43 changes: 0 additions & 43 deletions cmd/gen.go

This file was deleted.

198 changes: 0 additions & 198 deletions cmd/init.go

This file was deleted.

42 changes: 0 additions & 42 deletions cmd/init_test.go

This file was deleted.

45 changes: 0 additions & 45 deletions cmd/root.go

This file was deleted.

Empty file removed cmd/testdata/init/.keep
Empty file.
17 changes: 0 additions & 17 deletions cmd/version.go

This file was deleted.

3 changes: 1 addition & 2 deletions codegen/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (
"runtime"
"strings"

"github.com/vektah/gqlparser/v2/ast"

"github.com/99designs/gqlgen/codegen/config"
"github.com/99designs/gqlgen/codegen/templates"
"github.com/vektah/gqlparser/v2/ast"
)

func GenerateCode(data *Data) error {
Expand Down

0 comments on commit d7da5b0

Please sign in to comment.