(db *sql.DB, runID, filePath string, out io.Writer)
| 89 | } |
| 90 | |
| 91 | func DiffFileJSON(db *sql.DB, runID, filePath string, out io.Writer) error { |
| 92 | manifest, err := BuildDiffFile(db, runID, filePath) |
| 93 | if err != nil { |
| 94 | return err |
| 95 | } |
| 96 | return printJSON(out, manifest) |
| 97 | } |
| 98 | |
| 99 | func BuildDiffFile(db *sql.DB, runID, filePath string) (FileDiffManifest, error) { |
| 100 | filePath, err := cleanRelativeFile(filePath) |