Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup main #1958

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading