LoadSummary loads a single session's Summary. Errors when the session file is missing or unreadable.
(repoDir, sessionID string)
| 129 | // LoadSummary loads a single session's Summary. Errors when the session |
| 130 | // file is missing or unreadable. |
| 131 | func LoadSummary(repoDir, sessionID string) (*Summary, error) { |
| 132 | path, err := SessionFilePath(repoDir, sessionID) |
| 133 | if err != nil { |
| 134 | return nil, err |
| 135 | } |
| 136 | return loadSummaryFromFile(path, sessionID, repoDir) |
| 137 | } |
| 138 | |
| 139 | // LoadDetail returns the summary plus per-file item records for one session. |
| 140 | func LoadDetail(repoDir, sessionID string) (*Summary, []ItemDetail, error) { |