MetricsPath returns the absolute location of the handoff metrics log.
(root string)
| 44 | |
| 45 | // MetricsPath returns the absolute location of the handoff metrics log. |
| 46 | func MetricsPath(root string) string { |
| 47 | absRoot, err := filepath.Abs(root) |
| 48 | if err != nil { |
| 49 | return filepath.Join(root, ".codemap", metricsFilename) |
| 50 | } |
| 51 | return filepath.Join(absRoot, ".codemap", metricsFilename) |
| 52 | } |
| 53 | |
| 54 | // ReadLatest reads the latest handoff artifact if it exists. |
| 55 | // Returns (nil, nil) when no artifact is present. |
no outgoing calls