Skip to content

Commit

Permalink
Define version
Browse files Browse the repository at this point in the history
  • Loading branch information
toshimaru committed Aug 12, 2019
1 parent b369160 commit 829fe3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
)

var (
version = "dev"
showVersion bool
theme string
)
Expand Down Expand Up @@ -47,7 +48,7 @@ func main() {

func cmdMain(cmd *cobra.Command, args []string) (err error) {
if showVersion {
cmd.Println("Version 0.0.0 (not yet released)")
cmd.Printf("version %s\n", version)
return
}

Expand Down

0 comments on commit 829fe3b

Please sign in to comment.