mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-19 08:37:28 +08:00
fix: remove garbled terminal output
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user