commands/new.go 🔗
@@ -55,7 +55,7 @@ func runNewBug(cmd *cobra.Command, args []string) error {
err = newBug.Commit(repo)
- fmt.Println(newBug.HumanId())
+ fmt.Printf("%s created\n", newBug.HumanId())
return err
Michael Muré created
commands/new.go | 2 +-
graphql/handler.go | 2 +-
graphql/schema.go | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
@@ -55,7 +55,7 @@ func runNewBug(cmd *cobra.Command, args []string) error {
err = newBug.Commit(repo)
- fmt.Println(newBug.HumanId())
+ fmt.Printf("%s created\n", newBug.HumanId())
return err
@@ -3,7 +3,7 @@ package graphql
import "github.com/graphql-go/handler"
func NewHandler() (*handler.Handler, error) {
- schema, err := graphqlSchema()
+ schema, err := newGraphqlSchema()
if err != nil {
return nil, err
@@ -2,7 +2,7 @@ package graphql
import "github.com/graphql-go/graphql"
-func graphqlSchema() (graphql.Schema, error) {
+func newGraphqlSchema() (graphql.Schema, error) {
rootQuery := graphql.ObjectConfig{
Name: "RootQuery",