github.com/animeshon/gqlgen@v0.13.1-0.20210304133704-3a770431bb6d/cmd/version.go (about) 1 package cmd 2 3 import ( 4 "fmt" 5 6 "github.com/animeshon/gqlgen/graphql" 7 "github.com/urfave/cli/v2" 8 ) 9 10 var versionCmd = &cli.Command{ 11 Name: "version", 12 Usage: "print the version string", 13 Action: func(ctx *cli.Context) error { 14 fmt.Println(graphql.Version) 15 return nil 16 }, 17 }