| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(cmd): unified error codes + exit codes internal/errors introduces a small, stable exit code surface (0..9) and a CodedError that wraps a cause while remaining errors.Is/As-friendly. ExitCode(err) extracts the code (or CodeGenericError for uncoded errors), so cmd/nightme can return the right status without parsing strings. Eight unit tests cover nil, top-level / wrapped CodedError, generic fallback, With / Without cause, and From() convenience. | 2 个月前 | |
feat(cmd): unified error codes + exit codes internal/errors introduces a small, stable exit code surface (0..9) and a CodedError that wraps a cause while remaining errors.Is/As-friendly. ExitCode(err) extracts the code (or CodeGenericError for uncoded errors), so cmd/nightme can return the right status without parsing strings. Eight unit tests cover nil, top-level / wrapped CodedError, generic fallback, With / Without cause, and From() convenience. | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 2 个月前 |