add env command

This commit is contained in:
2026-06-18 02:39:51 +08:00
parent 3e6768b1e3
commit b720c6d360
3 changed files with 79 additions and 1 deletions

View File

@@ -8,15 +8,18 @@ import (
func commandsUsage() string {
return fmt.Sprintf(
`commands:
env %v
path %v
time %v
week %v
`, commandPathDescription, commandTimeDescription, commandWeekDescription)
`, commandEnvDescription, commandPathDescription, commandTimeDescription, commandWeekDescription)
}
func main() {
if len(os.Args) >= 2 {
switch os.Args[1] {
case "env":
commandEnv(os.Args[1:])
case "path":
commandPath(os.Args[1:])
case "time":