Files
docker-machine/version/version.go
Nathan LeClaire 7b195916ea Bump version to 0.9.0-rc2
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-11-30 14:36:04 -08:00

25 lines
483 B
Go

package version
import (
"fmt"
"strings"
)
var (
// Version should be updated by hand at each release
Version = "0.9.0-rc2"
// 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, build %s", Version, GitCommit)
}
// RC checks if the Machine version is a release candidate or not
func RC() bool {
return strings.Contains(Version, "rc")
}