Skip to content

Commit

Permalink
add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
choueric committed Nov 30, 2016
1 parent fee3483 commit 6cd8486
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion handler.go
Expand Up @@ -43,7 +43,7 @@ func HandleCmd(cmd string, pool HandlerPool, args []string, config *Config) int
if cmd == "help" {
pool.PrintUsage()
printTitle("- help")
fmt.Println(" Display this message.")
fmt.Printf(" Display this message. Version: %s\n", VERSION)
return 0
}

Expand Down
7 changes: 4 additions & 3 deletions main.go
Expand Up @@ -24,9 +24,10 @@ import (
)

const (
CRED = "\x1b[31;1m"
CGREEN = "\x1b[32;1m"
CEND = "\x1b[0;m"
CRED = "\x1b[31;1m"
CGREEN = "\x1b[32;1m"
CEND = "\x1b[0;m"
VERSION = "0.1"
)

func printTitle(format string, v ...interface{}) {
Expand Down

0 comments on commit 6cd8486

Please sign in to comment.