Merge PR #2318: Simplify version handling, rely on git describe
This commit is contained in:
committed by
Christopher Goes
parent
b74a6a9066
commit
10b916eb28
+2
-7
@@ -17,15 +17,10 @@ var (
|
||||
|
||||
// return version of CLI/node and commit hash
|
||||
func GetVersion() string {
|
||||
v := Version
|
||||
if GitCommit != "" {
|
||||
v = v + "-" + GitCommit
|
||||
}
|
||||
return v
|
||||
return Version
|
||||
}
|
||||
|
||||
// CMD
|
||||
func printVersion(cmd *cobra.Command, args []string) {
|
||||
v := GetVersion()
|
||||
fmt.Println(v)
|
||||
fmt.Println(GetVersion())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user