1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package cmd import ( "fmt" "github.com/99designs/gqlgen/graphql" "github.com/urfave/cli" ) var versionCmd = cli.Command{ Name: "version", Usage: "print the version string", Action: func(ctx *cli.Context) { fmt.Println(graphql.Version) }, }