* 删除任务
(id: string)
| 329 | * 删除任务 |
| 330 | */ |
| 331 | public deleteTask(id: string): boolean { |
| 332 | const deleted = this.tasks.delete(id); |
| 333 | |
| 334 | if (deleted && this.config.autoSave) { |
| 335 | this.saveTodoFile(); |
| 336 | } |
| 337 | |
| 338 | return deleted; |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * 获取任务 |
nothing calls this directly
no test coverage detected