mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 14:54:53 -04:00
cli: add name of build type to version cmd output (#1179)
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
34142cbf05
commit
84a787b538
3 changed files with 7 additions and 1 deletions
|
@ -34,7 +34,7 @@ func runVersion(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
commit, state, date, goVersion, compiler, platform := parseBuildInfo(buildInfo)
|
commit, state, date, goVersion, compiler, platform := parseBuildInfo(buildInfo)
|
||||||
|
|
||||||
cmd.Printf("Version:\t%s\n", constants.VersionInfo)
|
cmd.Printf("Version:\t%s (%s)\n", constants.VersionInfo, constants.VersionBuild)
|
||||||
cmd.Printf("GitCommit:\t%s\n", commit)
|
cmd.Printf("GitCommit:\t%s\n", commit)
|
||||||
cmd.Printf("GitTreeState:\t%s\n", state)
|
cmd.Printf("GitTreeState:\t%s\n", state)
|
||||||
cmd.Printf("BuildDate:\t%s\n", date)
|
cmd.Printf("BuildDate:\t%s\n", date)
|
||||||
|
|
|
@ -14,3 +14,6 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEf8F1hpmwE+YCFXzjGtaQcrL6XZVT
|
||||||
JmEe5iSLvG1SyQSAew7WdMKF6o9t8e2TFuCkzlOhhlws2OHWbiFZnFWCFw==
|
JmEe5iSLvG1SyQSAew7WdMKF6o9t8e2TFuCkzlOhhlws2OHWbiFZnFWCFw==
|
||||||
-----END PUBLIC KEY-----
|
-----END PUBLIC KEY-----
|
||||||
`
|
`
|
||||||
|
|
||||||
|
// VersionBuild is the category of the current build.
|
||||||
|
const VersionBuild = "Enterprise build; see documentation for license agreement"
|
|
@ -14,3 +14,6 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELcPl4Ik+qZuH4K049wksoXK/Os3Z
|
||||||
b92PDCpM7FZAINQF88s1TZS/HmRXYk62UJ4eqPduvUnJmXhNikhLbMi6fw==
|
b92PDCpM7FZAINQF88s1TZS/HmRXYk62UJ4eqPduvUnJmXhNikhLbMi6fw==
|
||||||
-----END PUBLIC KEY-----
|
-----END PUBLIC KEY-----
|
||||||
`
|
`
|
||||||
|
|
||||||
|
// VersionBuild is the category of the current build.
|
||||||
|
const VersionBuild = "Open-source software build; AGPL-3.0-only applies"
|
Loading…
Add table
Add a link
Reference in a new issue