added version information

This commit is contained in:
Christian Goll
2021-10-04 17:10:33 +02:00
parent 503480809b
commit 32e0de5a0f
4 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
package version
import (
"fmt"
"github.com/spf13/cobra"
)
var Version = "development"
func CobraRunE(cmd *cobra.Command, args []string) error {
fmt.Println("Version foo:\t", Version)
return nil
}