mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Move variable with program name to the top in version.go
This commit is contained in:
parent
fd8b64768c
commit
56d6e1102d
@ -15,6 +15,9 @@ var (
|
||||
Suffix: "",
|
||||
}
|
||||
|
||||
// The program name
|
||||
programName = "Portainer Stack Utils"
|
||||
|
||||
// commitHash contains the current Git revision. Use Go Releaser to make sure this gets set.
|
||||
commitHash string
|
||||
|
||||
@ -46,8 +49,6 @@ func (v Version) String() string {
|
||||
}
|
||||
|
||||
func BuildVersionString() string {
|
||||
program := "Portainer Stack Utils"
|
||||
|
||||
version := "v" + CurrentVersion.String()
|
||||
|
||||
if commitHash != "" {
|
||||
@ -61,5 +62,5 @@ func BuildVersionString() string {
|
||||
date = "unknown"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s %s %s BuildDate: %s", program, version, osArch, date)
|
||||
return fmt.Sprintf("%s %s %s BuildDate: %s", programName, version, osArch, date)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user