Refactor structure, use cobra

This commit is contained in:
Ben Sarmiento
2023-11-29 23:05:08 +01:00
parent 70550ea57c
commit ced99b9667
10 changed files with 158 additions and 99 deletions

17
internal/version.go Normal file
View File

@@ -0,0 +1,17 @@
package internal
import (
"fmt"
)
var (
BuiltAt string
GoVersion string
GitCommit string
Version string = "dev"
)
func ShowVersion() {
fmt.Printf("zurg\nBuilt At: %s\nGo Version: %s\nCommit: %s\nVersion: %s\n",
BuiltAt, GoVersion, GitCommit, Version)
}