github.com/galaxy-book/gqlgen@v0.7.2/cmd/version.go (about)

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