Skip to content

Commit

Permalink
feat: add version command
Browse files Browse the repository at this point in the history
  • Loading branch information
varoOP committed Sep 20, 2023
1 parent d7cf18c commit fd04e39
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/shinkrodb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import (
"github.com/varoOP/shinkrodb/internal/domain"
)

var (
version = "dev"
commit = ""
date = ""
)

func main() {
cfg := config.NewConfig()
var rootPath string
Expand All @@ -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")
}
Expand Down

0 comments on commit fd04e39

Please sign in to comment.