fix: 错误系统重构、消除静默吞错、update 修复、文档同步

This commit is contained in:
2026-06-10 21:04:34 +08:00
parent 4d206f39cc
commit 2552412f77
12 changed files with 99 additions and 55 deletions

View File

@@ -1,4 +1,5 @@
import type { TaskItem } from "../types.ts";
import { CommandError } from "../cli/errors.ts";
export function parseTasks(content: string): TaskItem[] {
const tasks: TaskItem[] = [];
@@ -15,7 +16,7 @@ export function parseTasks(content: string): TaskItem[] {
return tasks;
}
export class TaskFormatError extends Error {
export class TaskFormatError extends CommandError {
constructor(message: string) {
super(message);
this.name = this.constructor.name;