package version

import (
	"fmt"
	"runtime"
)

var (
	Version   = "dev"
	GitCommit = "unknown"
	BuildTime = "unknown"
	GoVersion = runtime.Version()
)

func Info() string {
	return fmt.Sprintf("Ops-Assistant %s (commit: %s, built: %s, %s %s/%s)",
		Version, GitCommit, BuildTime, GoVersion, runtime.GOOS, runtime.GOARCH)
}

func Short() string {
	return fmt.Sprintf("Ops-Assistant %s", Version)
}
