sascha-andres/git-commit

View on GitHub
cmd/methods/version_release.go

Summary

Maintainability
A
0 mins
Test Coverage
package methods

import "fmt"

var (
    versionNumber = "development"
    commit        = "unset"
    date          = "unset"
)

// PrintVersion writes out the version number to stdout
func PrintVersion() {
    fmt.Println(fmt.Sprintf("git-hook-commit version %s", versionNumber))
    fmt.Println(fmt.Sprintf("compiled from %s on %s", commit, date))
    fmt.Println()
}