Skip to content

Commit

Permalink
Add alpha to version (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed Nov 3, 2020
1 parent e5d5d98 commit 5887b1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion version/version.go
Expand Up @@ -23,13 +23,15 @@ var (
defaultVersionString = "0.0.0-git"
versionString = ""
commit = ""
status = "alpha"
)

// Info FIXMEDOC
type Info struct {
Application string `json:"Application"`
VersionString string `json:"VersionString"`
Commit string `json:"Commit"`
Status string `json:"Status"`
}

// NewInfo FIXMEDOC
Expand All @@ -38,11 +40,12 @@ func NewInfo(application string) *Info {
Application: application,
VersionString: versionString,
Commit: commit,
Status: status,
}
}

func (i *Info) String() string {
return fmt.Sprintf("%s Version: %s Commit: %s", i.Application, i.VersionString, i.Commit)
return fmt.Sprintf("%s %s Version: %s Commit: %s", i.Application, i.Status, i.VersionString, i.Commit)
}

//nolint:gochecknoinits
Expand Down

0 comments on commit 5887b1a

Please sign in to comment.