mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 21:50:07 +02:00
* feat: optimize version output Signed-off-by: yxxhero <aiopsclub@163.com> * Update docs/index.md Signed-off-by: yxxhero <aiopsclub@163.com> Signed-off-by: yxxhero <aiopsclub@163.com> Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
17 lines
260 B
Go
17 lines
260 B
Go
package version
|
|
|
|
import (
|
|
classyversion "go.szostok.io/version"
|
|
)
|
|
|
|
var unknownVersion = "(devel)"
|
|
|
|
func Version() string {
|
|
currentVersion := classyversion.Get().Version
|
|
|
|
if currentVersion == unknownVersion {
|
|
return "0.0.0-dev"
|
|
}
|
|
return currentVersion
|
|
}
|