From 39f9dbf6d245f5b1b1c942c7afcda31519ca1113 Mon Sep 17 00:00:00 2001 From: vvakame Date: Sat, 21 Jul 2018 18:04:02 +0900 Subject: [PATCH] fix error from breaking change --- cmd/root.go | 2 +- example/todo/todo.go | 2 +- test/resolvers_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index ba235d70449..b9022d12275 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -20,7 +20,7 @@ var packageName string var modelPackageName string func init() { - rootCmd.PersistentFlags().StringVar(&configFilename, "config", "", "the file to configuration to") + rootCmd.PersistentFlags().StringVarP(&configFilename, "config", "c", "", "the file to configuration to") rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "show logs") rootCmd.PersistentFlags().StringVar(&output, "out", "", "the file to write to") diff --git a/example/todo/todo.go b/example/todo/todo.go index edcfee356e3..a3667e7e76d 100644 --- a/example/todo/todo.go +++ b/example/todo/todo.go @@ -1,4 +1,4 @@ -//go:generate gorunpkg github.com/vektah/gqlgen -out generated.go +//go:generate gorunpkg github.com/vektah/gqlgen --out generated.go package todo diff --git a/test/resolvers_test.go b/test/resolvers_test.go index 7f4c04bf615..9aacd7a050a 100644 --- a/test/resolvers_test.go +++ b/test/resolvers_test.go @@ -1,4 +1,4 @@ -//go:generate gorunpkg github.com/vektah/gqlgen -config config.yaml +//go:generate gorunpkg github.com/vektah/gqlgen --config config.yaml package test