mirror of
https://github.com/3bbbeau/tfvars-atlantis-config.git
synced 2024-11-22 22:10:52 +00:00
23 lines
480 B
Go
23 lines
480 B
Go
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// Build-time version string, overriden by ldflags.
|
||
|
var v string = "devel"
|
||
|
|
||
|
// NewVersionCmd returns the command for retrieving the version of this utility.
|
||
|
func NewVersionCmd() *cobra.Command {
|
||
|
cmd := &cobra.Command{
|
||
|
Use: "version",
|
||
|
Short: "Version of terragrunt-atlantis-config",
|
||
|
Long: "Version of terragrunt-atlantis-config",
|
||
|
Run: func(cmd *cobra.Command, args []string) {
|
||
|
cmd.Println(v)
|
||
|
},
|
||
|
}
|
||
|
|
||
|
return cmd
|
||
|
}
|