File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import "github.com/fatih/color"
44
55var (
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}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111)
1212
1313var (
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 {
You can’t perform that action at this time.
0 commit comments