Files
docker-machine/version/version.go
Jean-Laurent de Morlhon 1521fed1ed Add a version command
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-11-19 12:42:32 +01:00

17 lines
338 B
Go

package version
import "fmt"
var (
// Version should be updated by hand at each release
Version = "0.5.2-dev"
// GitCommit will be overwritten automatically by the build system
GitCommit = "HEAD"
)
// FullVersion formats the version to be printed
func FullVersion() string {
return fmt.Sprintf("%s ( %s )", Version, GitCommit)
}