Skip to content

Commit

Permalink
ydict V2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Oct 24, 2019
1 parent d022d3f commit c915239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/logo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import "github.com/fatih/color"

var (
//Version of ydict
Version = "0.1"
logo = `
logo = `
██╗ ██╗██████╗ ██╗ ██████╗████████╗
╚██╗ ██╔╝██╔══██╗██║██╔════╝╚══██╔══╝
╚████╔╝ ██║ ██║██║██║ ██║
Expand All @@ -19,6 +18,6 @@ https://github.com/TimothyYe/ydict
`
)

func DisplayLogo() {
color.Cyan(logo, Version)
func DisplayLogo(version string) {
color.Cyan(logo, version)
}
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
)

var (
Version = "0.1"
withVoice int
withMore bool
withCache bool
Expand All @@ -28,7 +29,7 @@ func main() {

if len(os.Args) == 1 ||
(len(os.Args) > 1 && (os.Args[1] == "-h" || os.Args[1] == "-help")) {
lib.DisplayLogo()
lib.DisplayLogo(Version)
}

var rootCmd = &cobra.Command{
Expand Down

0 comments on commit c915239

Please sign in to comment.