diff options
author | Michael Muré <batolettre@gmail.com> | 2019-07-09 13:22:59 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-07-09 13:22:59 +0200 |
commit | 14022953823fc768849b6cc826b05b61a89b7626 (patch) | |
tree | 4d4f70ee46b9cc230d6602cb066c697f8a0a4e8e /vendor/github.com/99designs/gqlgen/cmd/root.go | |
parent | a5c42b7c11fc082d47027ba5e0dbdeddcc14e62e (diff) | |
download | git-bug-14022953823fc768849b6cc826b05b61a89b7626.tar.gz |
graphql: don't use the gqlgen command to generate to avoid pulling urfave/cli
Diffstat (limited to 'vendor/github.com/99designs/gqlgen/cmd/root.go')
-rw-r--r-- | vendor/github.com/99designs/gqlgen/cmd/root.go | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/vendor/github.com/99designs/gqlgen/cmd/root.go b/vendor/github.com/99designs/gqlgen/cmd/root.go deleted file mode 100644 index dc2970ac..00000000 --- a/vendor/github.com/99designs/gqlgen/cmd/root.go +++ /dev/null @@ -1,44 +0,0 @@ -package cmd - -import ( - "fmt" - "io/ioutil" - "log" - "os" - - "github.com/99designs/gqlgen/graphql" - "github.com/urfave/cli" - - // Required since otherwise dep will prune away these unused packages before codegen has a chance to run - _ "github.com/99designs/gqlgen/handler" -) - -func Execute() { - app := cli.NewApp() - app.Name = "gqlgen" - app.Usage = genCmd.Usage - app.Description = "This is a library for quickly creating strictly typed graphql servers in golang. See https://gqlgen.com/ for a getting started guide." - app.HideVersion = true - app.Flags = genCmd.Flags - app.Version = graphql.Version - app.Before = func(context *cli.Context) error { - if context.Bool("verbose") { - log.SetFlags(0) - } else { - log.SetOutput(ioutil.Discard) - } - return nil - } - - app.Action = genCmd.Action - app.Commands = []cli.Command{ - genCmd, - initCmd, - versionCmd, - } - - if err := app.Run(os.Args); err != nil { - fmt.Fprint(os.Stderr, err.Error()) - os.Exit(1) - } -} |