diff --git a/cmd/shinkrodb/main.go b/cmd/shinkrodb/main.go index 0de5057..12da613 100644 --- a/cmd/shinkrodb/main.go +++ b/cmd/shinkrodb/main.go @@ -9,6 +9,12 @@ import ( "github.com/varoOP/shinkrodb/internal/domain" ) +var ( + version = "dev" + commit = "" + date = "" +) + func main() { cfg := config.NewConfig() var rootPath string @@ -29,6 +35,11 @@ func main() { am.Get(path.Join(rootPath, "tmdb-mal-master.yaml")) domain.CreateMapping(am, path.Join(rootPath, "tmdb-mal.yaml")) + case "version": + fmt.Printf("shinkrodb: %v\n", version) + fmt.Printf("Commit: %v\n", commit) + fmt.Printf("Build Date: %v\n", date) + default: fmt.Println("ERROR: no command specified") }