const (
appName = "xds-server"
appDescription = "X(cross) Development System Server is a web server that allows to remotely cross build applications."
- appVersion = "0.0.1"
appCopyright = "Apache-2.0"
appUsage = "X(cross) Development System Server"
)
cli.Author{Name: "Sebastien Douheret", Email: "sebastien@iot.bzh"},
}
-// AppVersionGitTag is the git tag id added to version string
-// Should be set by compilation -ldflags "-X main.AppVersionGitTag=xxx"
-var AppVersionGitTag = "unknown-dev"
+// AppVersion is the version of this application
+var AppVersion = "?.?.?"
+
+// AppSubVersion is the git tag id added to version string
+// Should be set by compilation -ldflags "-X main.AppSubVersion=xxx"
+var AppSubVersion = "unknown-dev"
// Web server main routine
func webServer(ctx *cli.Context) error {
app.Name = appName
app.Description = appDescription
app.Usage = appUsage
- app.Version = appVersion + " (" + AppVersionGitTag + ")"
+ app.Version = AppVersion + " (" + AppSubVersion + ")"
app.Authors = appAuthors
app.Copyright = appCopyright
app.Metadata = make(map[string]interface{})
- app.Metadata["version"] = appVersion
- app.Metadata["git-tag"] = AppVersionGitTag
+ app.Metadata["version"] = AppVersion
+ app.Metadata["git-tag"] = AppSubVersion
app.Metadata["logger"] = log
app.Flags = []cli.Flag{