package cli

// Version is the git hash of the source revision the binary was built
// from, stamped via -ldflags from `git rev-parse HEAD`.
//
// "dev" when built without -ldflags.
var Version = "dev"

// Date is the UTC build timestamp in RFC3339 form.
//
// "unknown" when built without -ldflags.
var Date = "unknown"

// String renders the canonical one-line form printed by `version` subcommand
// and available to loggers.
//
// Format: "vm-migration <Version> (built: <Date>)".
func String() string {
	return "vm-migration " + Version + " (built: " + Date + ")"
}
