Skip to content

Commit c915239

Browse files
committed
ydict V2.0
1 parent d022d3f commit c915239

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/logo.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import "github.com/fatih/color"
44

55
var (
66
//Version of ydict
7-
Version = "0.1"
8-
logo = `
7+
logo = `
98
██╗ ██╗██████╗ ██╗ ██████╗████████╗
109
╚██╗ ██╔╝██╔══██╗██║██╔════╝╚══██╔══╝
1110
╚████╔╝ ██║ ██║██║██║ ██║
@@ -19,6 +18,6 @@ https://github.com/TimothyYe/ydict
1918
`
2019
)
2120

22-
func DisplayLogo() {
23-
color.Cyan(logo, Version)
21+
func DisplayLogo(version string) {
22+
color.Cyan(logo, version)
2423
}

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
)
1212

1313
var (
14+
Version = "0.1"
1415
withVoice int
1516
withMore bool
1617
withCache bool
@@ -28,7 +29,7 @@ func main() {
2829

2930
if len(os.Args) == 1 ||
3031
(len(os.Args) > 1 && (os.Args[1] == "-h" || os.Args[1] == "-help")) {
31-
lib.DisplayLogo()
32+
lib.DisplayLogo(Version)
3233
}
3334

3435
var rootCmd = &cobra.Command{

0 commit comments

Comments
 (0)