add week command

This commit is contained in:
2026-06-15 11:43:41 +08:00
parent ded7c14007
commit f5692585fa
2 changed files with 40 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ func commandsUsage() string {
return fmt.Sprintf(
`commands:
path %v
`, commandPathDescription)
week %v
`, commandPathDescription, commandWeekDescription)
}
func main() {
@@ -17,6 +18,8 @@ func main() {
switch os.Args[1] {
case "path":
commandPath(os.Args[1:])
case "week":
commandWeek(os.Args[1:])
default:
fmt.Printf("unknow command `%v`\n\n", os.Args[1])
fmt.Printf("%v", commandsUsage())