github.com/GoogleCloudPlatform/terraformer@v0.8.18/cmd/version.go (about)

     1  package cmd
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/spf13/cobra"
     7  )
     8  
     9  const version = "v0.8.18"
    10  
    11  var versionCmd = &cobra.Command{
    12  	Use:   "version",
    13  	Short: "Print the version number of Terraformer",
    14  	Run: func(cmd *cobra.Command, args []string) {
    15  		fmt.Println("Terraformer " + version)
    16  	},
    17  }