diff --git a/cli/brook/main.go b/cli/brook/main.go index 65b9ee6a9..cc19253b3 100644 --- a/cli/brook/main.go +++ b/cli/brook/main.go @@ -50,7 +50,7 @@ var debugAddress string func main() { app := cli.NewApp() app.Name = "Brook" - app.Version = "20230101" + app.Version = "20230122" app.Usage = "A cross-platform network tool designed for developers" app.Authors = []*cli.Author{ { @@ -2324,6 +2324,37 @@ complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete brook return nil }, }, + &cli.Command{ + Name: "ChineseNewYear", + Hidden: true, + Action: func(c *cli.Context) error { + s := ` +This version number 20230122 coincides with the date of Chinese New Year 20230101. +So this hidden command is to wish everyone a happy new year. +In the chinese shi er sheng xiao, this year is tu nian: + + /| __ +* + / | ,-~ / + + . Y :| // / . * + . | jj /( .^ * + * >-"~"-v" . * . +* / Y + . . jo o | . + + ( ~T~ j + . + + >._-' _./ + + /| ;-"~ _ l + . / l/ ,-"~ \ + + \//\/ .- \ + + Y / Y + l I ! + ]\ _\ /"\ + (" ~----( ~ Y. ) + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +` + fmt.Println(s) + return nil + }, + }, } if err := app.Run(os.Args); err != nil { log.Println(err) diff --git a/docs/index.html b/docs/index.html index 7afe6e886..98bf4153f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -44,7 +44,7 @@ ing7: false, p7c: "", p: 0, - zh: navigator.language.toLowerCase() == "zh-cn", + zh: navigator.language.toLowerCase().startsWith("zh-"), }; }, methods: { @@ -113,9 +113,9 @@