Files
docker-machine/version/version.go
Guillaume Grussenmeyer 4766108f87 Fixed incorrect parsing of Boot2Docker ISO version (issue #4058).
Signed-off-by: Guillaume Grussenmeyer <ggrussenmeyer@gmail.com>
2017-10-10 17:31:20 -07:00

24 lines
423 B
Go

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