fix: remove garbled terminal output

This commit is contained in:
lpf
2026-03-11 19:20:20 +08:00
parent 13108b0333
commit b3c0f58998
8 changed files with 44 additions and 44 deletions

View File

@@ -177,15 +177,15 @@ func cronAddCmd(storePath string) {
return
}
fmt.Printf("鉁?Added job '%s' (%s)\n", job.Name, job.ID)
fmt.Printf("Added job '%s' (%s)\n", job.Name, job.ID)
}
func cronRemoveCmd(storePath, jobID string) {
cs := cron.NewCronService(storePath, nil)
if cs.RemoveJob(jobID) {
fmt.Printf("鉁?Removed job %s\n", jobID)
fmt.Printf("Removed job %s\n", jobID)
} else {
fmt.Printf("鉁?Job %s not found\n", jobID)
fmt.Printf("Job %s not found\n", jobID)
}
}
@@ -205,8 +205,8 @@ func cronEnableCmd(storePath string, disable bool) {
if disable {
status = "disabled"
}
fmt.Printf("鉁?Job '%s' %s\n", job.Name, status)
fmt.Printf("Job '%s' %s\n", job.Name, status)
} else {
fmt.Printf("鉁?Job %s not found\n", jobID)
fmt.Printf("Job %s not found\n", jobID)
}
}