comments
This commit is contained in:
parent
40cd112a2a
commit
cb0396c40f
@ -79,10 +79,12 @@ func (app *App) Version() string {
|
|||||||
return GitSummary
|
return GitSummary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetVersionName sets the custom application version
|
||||||
func (app *App) SetVersionName(v string) {
|
func (app *App) SetVersionName(v string) {
|
||||||
app.versionName = v
|
app.versionName = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VersionName returns a string with the settled app version or auto-generated version if it didn't set
|
||||||
func (app *App) VersionName() string {
|
func (app *App) VersionName() string {
|
||||||
if app.versionName != "" {
|
if app.versionName != "" {
|
||||||
return app.versionName
|
return app.versionName
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user